What is a P-Trap Used For. The most critical task of the p-trap is to prevent noxious gases such as methane from making their way into a home. These traps also allow homeowners to quickly and easily recover small items that fall down the drain. Long story short, they're an integral part of modern plumbing design.