Bacteria are very complex and I don't think anyone would suggest that they could "randomly appear".
The meteorite you are talking about is one from Mars. If such traces could be confirmed to be fossils (and the general consensus appears to be that they are not) then they would have come from Mars after the appearance of life there in a process, presumably, similar to one here.
------------------
Common sense isn't