Why do babies smile a lot when they look at the window?

Ived noticed that with both of my kids they tend to smile when they look at the window and baby talk? Idk I used to hear because they can see they’re guardian angels who do you think this is true?