It's called anthropomorphism.