the answer is Air deviates its straight path due to the rotation of the Earth
Air in the atmosphere moves around the world in a pattern called global atmospheric circulation. ... This pattern, called atmospheric circulation, is caused because the Sun heats the Earth more at the equator than at the poles. It's also affected by the spin of the Earth. In the tropics, near the equator, warm air rises.
Therefore, Earth is heated unevenly by the Sun but heat wants to be in equilibrium
Atmospheric circulation is driven by redistribution of planetary heat
Atmospheric circulation drives ocean circulation and regional climates