The surface of the eye
has veins which sometimes have a weakened walll at some point.
A little blood can seep out with eye rubbing, coughing, sneezing, lifting too much weight, etc. This looks dramatic but is benign and will absorb with no action on your part in 3-10 days depending upon the amount. You need only be concerned if you have bruising/bleeding elsewhere.