Why is it better to have solar panels face west rather than east?

Solar Panels should face west or south. Facing a solar panel south makes sense since we’re in the Northern Hemisphere. Why west though? Is it because the air in the west is warmer (having been warmed by more daylight) and therefore absorbs less sunlight, letting more energy get to the solar panel???