if he is the only fish, I am surprised he would do this. As far as I know, they are not necessarily known to be jumpers(some fish are). Maybe he was just trying to get to the other side?
Sorry for the joke, I am very sorry for your loss. Sometimes some fish just JUMP. There may not be any specific reason, they just do. The only good way to do this is cover the tank with some kind of lid, but it has to be an open lid for gas exchange. Some fish that are known to jump do it because they are restricted to a small space. In this particular case, I would not think this was the reason. Even in a very small tank, chromis are fairly small, and I doubt he would feel so cramped as to jump.