Babies are born with self-awareness which allows them to differentiate their bodies from other people's.

Babies are born with self-awareness which allows them to differentiate their bodies from other people’s.

A new research finds that from the minute they are born, babies are well aware of their own bodies. Body awareness is an important skill for distinguishing the self from others, and failure to develop body awareness may be a component of some disorders such as autism.

Source