What causes my nose to bleed while am asleep?

Unsure. To have an occasional nose bleed (epistaxis) should not be alarming, but if you are experiencing frequent epistaxis you should see and ENT doctor for an exam and treatment.