The sentence mentioned in the question is an example of personification.
What is personification?
Personification is a category of figurative language in which an inanimate or biotic factor is given human-like qualities and characteristics. The sentence in this question is an example of personification because in reality, a house cannot moan and is incapable of possessing a state of emotion or age. This is shown where the house is described as “old” and “depressed.” In actuality, a house is a structure comprised of objects that have no proneness to emotions and things humans can feel and grasp.
Answer Recap: This sentence is an example of personification.