How do I get rid of this?!?!?

I always get these on my inner thighs after shaving!! They hurt a bit but never bleed. I don't dry shave either. Anyone know how to get rid of them or why they happen in the first place???