In a hypothetical isolated system, you could have nuclear fusion reactor and nuclear fission reactor both generating energy. Fusion reactor combining small atoms creating larger ones and fission reactor breaking these large atoms back to smaller atoms, both actions creating energy.
I know that this would be perpetuum mobile, thus it is not possible. I just struggle to understand why.
Edit: Thank you all for explanations! Finally, it makes sense to me.