Warming up is very important before an exercise or a sport in order to prevent any injury related to the exercise as it prepares and conditions the muscles well for the sake of the activity. This is an extremely important part of exercise routines, and should be done at all times.
The warm-up should smoothly dress the body for workouts by slowly raising the heart rate and flow; this will relax the joints and enhance blood flow to the muscles. Straining the muscles makes them for physical exercise and limits injuries.
The other person was right on both guesses.. Growing pains or sleeping/resting on it incorrectly.
It could also be caused by overworking it.
All three of those options can lead to cramping or what feels like an ache near the joint (unless it`s not at a joint, then it`s probably just a little muscle cramp).
Because simple carbs are things with lots of fats such as your fried foods, your gressy foods, and junk foods. But complex carbs are your veggies and fruits and lean protiens like fish or chicken so its not as bad for you.