Logical fallacy

Anthropomorphic inference

Infers that a nonhuman system has a specific human belief, motive, or intention from a superficial similarity without evidence that the attribution explains its behavior.

A winding river beside a town, with an imagined face superimposed in its eddies

Examples

The river bends away from the town because it dislikes the people living there.
The bend calls for a physical explanation such as erosion. Dislike adds a motive the river has no demonstrated capacity to hold.
The algorithm showed an irrelevant item, so it felt insulted and wanted revenge.
The thermostat turned itself down after I complained. It must resent the way I spoke to it.

A similar case that can be sound

The writer says the thermostat “wants” to maintain a temperature and explicitly uses that as shorthand for its programmed target.