Why William and Kate wear blue and Meghan and Harry wear green

Why William and Kate wear blue and Meghan and Harry wear green