I like to assume that it's a controlled group or experiment, where everyone’s “A” name marks them as part of some curse and this Owari guy is there to witness it all.
Idk, maybe the punchline is that the guy doesn’t exist, or he’s a ghost or something, and the teacher didn’t actually call out his name and was just saying 'finish’ or 'the end'.