The statements given are the examples of personification.
We can say personification is a type of speech, in which we give qualities to something. There are many reasons and situations behind using personification. For example in a statement, “money talks”, money is a thing but talk is a quality. We know that money can’t talk by mouth like us.