Do you have disc brakes? A front disc brake puts forces on the wheel that try to throw it out the fork. Otherwise, you just didn't tighten it enough. If you have some of the bad exposed cam skewers, replace them with some good enclosed cam skewers:
http://www.sheldonbrown.com/skewers.html