In our Middle East airline, we wear uniform simply because the locals can't wear their traditional clothing (I.e. thobe) because of the negative G strap on the harness.
And those of you who don't think you need to wear uniform onboard, consider what the military pilot will think seeing two guys dressed in black t-shirts in the cockpit when they intercept an airliner which is out of radio contact.......