How Red Dwarf Stars Deprive Their Baby Planets of Oxygen