J.R. S. answered 04/29/20
Ph.D. in Biochemistry--University Professor--Chemistry Tutor
If you draw the Lewis dot structures for the two compounds, you'll see that water (H2O) is bent and polar whereas carbon dioxide is linear and not polar. Water has relatively strong hydrogen bonds holding the molecules together but CO2 has only dispersion forces acting as intermolecular forces. The weaker intermolecular forces explains why CO2 is a gas whereas H2O is a liquid at room temperature.