Diving is a self regulated activity. The instructor or the divemaster knows the ability level of each member of a group.
Koh Tao mostly offers easy/intermediate level of difficulty, it's impossible to just guess what the cause of his death was.
Maybe he did something very stupid, most probably he didn't.