We should not confuse air and wind. Although both words pointed to the same type of element and were closely related, both are completely different from each other.
In the formation of wind, there were two fundamental factors that came into play: air masses and atmospheric pressure. The wind originated from the rotation of the planet together with the difference in temperature between the land and the sea.
The wind was, in fact, a movement of air from one area to another with different pressures. Furthermore, since the Planet Earth constantly rotates and moves in a theoretically vertical manner, it also moved in the horizontal plane, thus creating the wind. The wind would originate from the energy of the Sun as a heat source; the movement of air would be mainly due to a special property of gases: hot air rises and cold air falls.