Baby headbands?

I’m pregnant with my first and was wondering is there some kind of specific reason people put headbands on their babies? Does it help with something? I always thought they look so uncomfortable and awkward