It is a fundamental principal of nature to strive for the least energy, which is why for exa,ple, balls roll down hills. When an atom splits, the two separate particles have less energy than the original atom. The difference is released as a gamma ray.