Lack of proper sleep and hormonal imbalance also cause some people to have shaky legs.