Why are giant and supergiant stars rare?