Shock absorbers are used in cars to control spring oscillations and maintain tire contact with the road, which improves vehicle handling, braking, and stability while making the ride smoother and more comfortable. They work by converting the kinetic energy of the suspension's movement into thermal energy, which is then dissipated through hydraulic fluid.