How to treat boils

What causes them to appear at the armpit and rear end area?