When installing a new washing machine, most people search for a convenient drainage line, thus installing a line that goes directly to the washer. This exposes the place to sewer fumes, among other things.  Note that lack of venting will cause the drain to run inappropriately and overflow to the nearby surroundings. Just like any other fixture, a drain pan requires a trap.