Nail bleeding occurs when you cut your dog's quick.
The quick in your dogs nail is the cuticle-like part in the center that's rich in nerves and blood vessels.
Since it's filled with blood vessels it's going to bleed a lot if you cut into it, and your dog will likely let out a yelp.