Welcome to the House!
No idea what happened to your saw. Can't even think what would cause an explosion that left the battery fine. Weird
edit:
Actually, I do have an idea. Capacitors can blow with some force, especially the big ones. Maybe that saw has some big capacitors.