The short answer is wind happens because the Sun heats some parts of the planet more than others, and this uneven heating starts a wind going. That means wind energy is really a kind of solar energy!