It was not until recent memory that what causes wind was understood. Wind is caused by air flowing from high pressure to low pressure. The Earth’s rotation prevents that flow from being direct, but deflects it side to side(right in the Northern Hemisphere and left in the Southern), so wind flows around the high and low pressure areas. This movement around is important for very large and long-lived pressure systems. For small, short-lived systems (outflow of a thunderstorm) the wind will flow directly from high pressure to low pressure.