Many people have drain pans installed under their water heaters or washing machines, but many of those pans are not connected to a drainpipe. With that setup, all you are doing is delaying the inevitable flood by about two minutes.
Original article: https://www.reviewjournal.com/life/home-and-garden/drain-pan-is-useless-if-it-is-not-connected-to-drainpipe-2580187/