It's not unlikely that all the solar system's planets have been contaminating each other for billions of years. All it takes is a big asteroid impact and some luck, and then some bacteria hitches a ride.
The tough part is of course thriving after the organism arrives. Given Mars' current climate and surface perchlorate levels, I'm not convinced it's likely that something from here takes root over there without some help.