Unfortunately, the etymology is lost in the sands of time. It may be related to the kind of stake you hammer into the ground, but nobody really knows.