Why is boric acid used?

Because it's an insect repellant