Air rises to high points; where a pipe run traps it with no escape, the bubble can resist water pressure enough to stop flow, particularly in low-pressure hot water systems. In drains, trapped air causes gurgling and slow, surging flow.
Supply air locks are usually purged by flushing; drainage air problems point back to venting design.