There can be two reasons. One is that your hips are too low, so that your shins are over the bar and the bar doesn’t have a direct path upwards and ends up hitting the shins, causing them to bleed. The other reason is the one mentioned earlier. When you try to keep the bar close to your body, ‌it might scratch against your shins, which is why shin sleeves for deadlifting are popular.