Biking is dangerous. I've been hit by cars accidentally at least 6 times and intentionally twice. No major damage yet, but it's been close a couple of times. Plus I've just fallen down on my own a couple of times.
It's a debatable point, but it's not too hard to find credible analyses showing that cycling is no more dangerous than walking, in some reasonable sense. If you've been hit that often, you may want to reevaluate your cycling habits--especially your road position. I'd roughly estimate that upwards of 95% of cyclists ride in a way that makes them dangerously prone to collisions. Usually, this means hugging the right side of the road, where you are likely to get hit by a car pulling out, or a door opening, or a car squeezing between you and oncoming traffic, or a motorist who didn't see you because you were hiding on the right side of the road. It's a testament to the safety of cycling that 95% of cyclists can ride so dangerously and yet are rarely involved in crashes. Riding safely, you shouldn't really be worrying about the danger of cycling at all.