It was predominantly inhabited by robots before and that’s still true for Mars.
The lunar night is two weeks long and it dips down to -173 degrees C. I suppose it is too much to hope for that they'll be able to keep these samples alive for very long.
So, while we make sure we don't create a super bacteria outside Earth. They almost do it on purpose to have "colonizing" data.
Kinda big difference
Vs full human colonies in the future anyways? I've never heard "make sure we don't create a super bacteria outside Earth" as a reason we bother, just that we don't want to contaminate other bodies yet.
The US also put animals inside sealed containers on the moon, the only difference is they all left.
Creating a super bacteria is more of a concern in habitable ecosystems though.