The old unit still has refrigerant in it
A working AC system holds refrigerant under pressure, and that has to be recovered before the old unit comes off the pad. A licensed contractor removes it with a recovery machine rather than letting it vent into the air, which is both the legal way to do it and the right one. This happens before anything gets disconnected.









