Hats are absolutely pure visuals, they have no function at all (and are "free events"). Most of the time there is no real reason to decline crew member offers either. Unless you'd prefer some other crew member for that specific slot etc. And there are some scenarios where it's an option between crew member and something else.