Windmills were originally just that, a wind-powered grain mill (to turn grain into flour). Many "windmills", for instance those scattered around the Australian outback, are actually "wind pumps" to bring water from to the surface from deep underground.