Two natural satellites of Mars have been discovered, and have been named "Phobos" and "Deimos". They are relatively small bodies, even for satellites. As far as the motives… for their creation and placement are concerned, you'd have to ask the responsible party.