Due to the presence of hydrogen bonding the molecules of the compound associated together
Both O and S belong to the same group but H2O is a liquid while H2S is a gas. This can be explained on the basis of electronegativity. In water due to the high electronegativity of oxygen, hydrogen bonds are formed. As a result the molecules of H2O get associated together, hence water exists as a liquid at room temperature. On the other hand, the electronegativity of S is less and therefore, hydrogen bonding in H2S is almost negligible. As a result of which molecules of H2S are not associated and H2S exists as a gas at room temperature