The cyclist is happier than some medal winners:
http://screengrabber.deadspin.com/bicycle-riding-spectator-totally-psyched-about-catching-1785559181
So maybe that was all that Rupp was up with the hat switching: creating a bunch of souvenirs for his fans.