So what happened? Presumably he was un-checked in or offloaded by the gate agent in error. This happens occasionally, most often during irregular operations when there may be multiple flights in a booking (backup options).
A customer shows up for their return flight only to find they have no reservation. The airline says “you didn’t take the flight” and the customer says, “then how did I get here?”