Bubble air mattresses are primarily used to prevent and treat bedsores (pressure ulcers) by using an alternating pressure pump to inflate and deflate air cells, reducing pressure points for bedridden or immobile patients. They improve blood circulation, provide comfort for long-term care, and are used in hospitals and home care settings.