Original: A given amount of nitromethane contains less energy than the same amount of methanol, but it requires less oxygen to burn (approximately half), so more of it can be put into an engine during each stroke and this leads to a higher power output.
Simplified: Nitromethane contains less energy than the same amount of methanol, but it requires less oxygen.