I think its gravity
Simple harmonic motion requires a restoring force, as that brings the objects back to the equilibrium position. It requires inertia, as that keeps the object moving through equilibrium, resulting in harmonic motion. It requires elasticity, as that is the source of the restoring force, it's the 'k' value, as it were. Elasticity results in the spring constant. Gravity, however, is not necessary. While it may be necessary for pendulum harmonic motion, as it results in the restoring force there, simple harmonic motion can be just a ball on a spring resting on a horizontal frictionless table. Pull the ball, it will have simple harmonic motion until the end of time, with no gravity acting on it.