Doing so prevents the leg from pulling due to which the muscle tension is reduced. This way, you can enjoy a comfortable night's sleep.