Air bags inflate in front of the driver/passenger. Instead of hitting a hard object (steering wheel / windscreen / car frame) they instead fall into a bag of air. A hard object will stop them quickly exerting a large force on the body and causing severe injuries. The air bag stops the person over a longer period of time and the force n the body is much less.