Gravity correlates with Size
So, other things being equal, the surface gravity of a planet correlates with its size.
Thus mountains on a planet like Mars, 1/3 the size of the Earth, can be up to three times higher, as indeed they are.
On an asteroid, mountains can be almost as big as the asteroid itself! This is one way to see their irregular shapes.