Why when change battery the inside was wet

I went to change my battery notice the inside of the cover was wet and the battery little wet it was on tight no opening in it why would it get wet

You have a bad seal… check that the seal us not bent or broken.