I ripped my toenail as well as the right side of my skin, it started to bleed. 4 days later and still bloody, it is inflamed, inflation spread, why?

Wait no more. Well, when the skin was ripped, the wound may have been seeded with a bacteria. The wound has now become infected or at least showing signs of infection. This can get worse and very quickly. The best solution is to have your toe evaluated by a podiatrist or any other doctor with experience treating nail injuries.
Injured, infected to. Clean your toe, apply pressure & ice to stop the bleeding, you can try OTC tripple antibiotic plus ointment until you see your doctor or a podiatrist to treat the injury & the infection. Feel better.