Aquacal pool heater heat exchange tank lid came loose

Not sure why, but the tank lid of the heat exchanger came loose and is shooting out water when I run it.

Why would this lid come loose? Is it repairable?