Mars doesn’t have enough gravity to retain oxygen or water vapor in the atmosphere.
That is correct. The current Martian atmosphere is close to vacuum. I was thinking of enclosed habitats. You can pump in Martian CO2 to get oxygen.