I know that hydrostatic pressure $P$ is directly proportional to density $\rho$ and depth $h$. Why does $P$ depend on gravitational acceleration $g$ ?
$P=\rho g h$
Is it because the force of the water columns is related to the weight? But then where would the surface be in the formula?