Answer
You have temporarily reduced the blood supply to your brain.
Work Step by Step
When you suddenly stand up from a squatting position, it takes a moment for the blood enclosed in your body to receive the message and to follow suit. Your heart suddenly has to work harder to pump the blood to that greater height. For a brief moment, the blood supply to your brain may decrease, causing lightheadedness.