How can I prevent boils. And why do I get them.

Infected cyst. Boils usually start as a small pimple or cyst that become infected and then fill with pus and become very large, inflamed and painful. They occur in areas where there's sweat and oil secretion. Try getting them treated when they are small with topical or oral antibiotic before they get really big.