Hoarding is associated with functional deficits in the frontal and temporal lobes of the brain, particularly with problems in the left temporal lobe. Apparently, hoarding reduces anxiety in this clinical population.
https://www.psychologytoday.com/us/blog/the-human-beast/202208/does-hoarding-have-evolutionary-roots