The check valve prevents air from backflowing into the system when the pump is off, ensuring proper drainage.