toddlers recognize themselves in mirrors
Young children develop a sense of self early on because it stems from evolution. Being able to distinguish safety from danger is a trait that humans and their ancestral species have utilized for millennia and it is a reason for why we still exist today.