Passing out itself is not the dangerous part, you will regain conscious once blood returns to your head.
The falling part that is dangerous. You can hit your head & cause serious injury. In this case, passing out occurs when you go from a seated to standing position too quickly that your body is not able to pump enough blood to your head (fighting more gravity when you stand up). Get up slowly.