Carrots are denser than broccoli, so they just take a little longer to cook. If you add them together the carrots will be undercooked (or the broccoli will be overcooked).