Health code. If the drain line backs up, the air gap prevents the dirty water from backing up into the sink where food is prepared. It spills out onto the floor instead, preventing contamination.