The device's intriguing behavior is caused by a slight coupling between the two motions or degrees of freedom, due to the geometry of the spring.
Similarly, when the weight is rotating back and forth, each twist of the weight in the direction that unwinds the spring also reduces the spring tension slightly, causing the weight to sag a little lower.