Of course, you're right. I didn't even think of that. He could have worn hats like he has in the past, but they might have been knocked off. Also, he would be gentlemanly enough to remove a hat in the presence of a lady. The bandanna would be a lot more secure and could stay put.