How do people get boils?

Usually. It usually occurs in people who are overly susceptible to staph infection. It's an abscess. Usually get from other person with infection.
Infected follicles. Usually boils develop when an overgrowth of bacteria cause a pus filled lump --- the best treatment is to open and drain the boil.