When you stand up to quick, since you've been sitting for awhile, all the blood rushes quickly downwards, leaving your brain with little blood.
I could be wrong though, but I think my theory is most logical in this thread