Chapeau Short: why do hats have a hatband?

in this shorter video, I will examine this subject: Western brimmed hats always seems to have a ribbon around them? Why? Music for intro by Alex Abramowitz and his Swingin' KC Band