Why is Chicago Called the Windy City?

If you ever visit Chicago the weather there is pretty dull and it is always windy. I would hate to live in Chicago because you will probably have a lot of bad hair days there unless you have a good brand of hairspray.