Happens quite a lot, although I've no idea why. Our football team wears blue shorts, Italy wear blue shirts in rugby and football, Germany white and so on. At a club level it's often to do with the club's founder or inital backer. They would often play in his racing or lucky colours. Not sure about national teams though