The EJECT statement in COBOL is used to force a page break in the compiler listing output. When the compiler encounters EJECT, it advances to a new page before continuing compilation. This helps organize the listing into logical sections for better readability and debugging.