After throwing up all night I woke up to having realllly sore legs? Why could this be happening?

Low potassium. One possibility if you have been vomiting is loss of potassium, a mineral your muscles need to function properly. Get a blood test to find out.