It can be postural hypotension, where there is sudden low blood pressure in the head due to movement.

Some people get this naturally, feeling like they are going to faint when they stand up. In others, it may be due to medication. Either way, it is not particularly dangerous if managed properly.