Why do people have hair around their anus?

Much like nose hair, pubic hair around the anus is to block any small particles and minerals from entering through the opening, which might lead to irritation and/or infection.