This is an illusory statistic because "black people" isn't a real category. People who self-identify as "black" have a wide-range of skin tones. Even a moderate bit of brown completely eliminates the risk of sunburn. You can have two "black" parents and be lighter skinned than the average southern Italian.
I say this from experience. I am a black person who is not particularly dark skinned, and have only had the slightest sunburn once in my life, after I had been working in a field for 16 hours straight in full sun under clear sky detasseling corn. When I got back to camp, the back of my neck seemed slightly sensitive, which was unusual. It was fine the next morning, and never peeled at all. I did the same for 2 weeks, and this was the only time I felt this. This was the worst sunburn (if it was one) that I've gotten in 50 years of life. I've spent plenty of time outside, and plenty of time inside being a code monkey and never going outside. I've never worn sunscreen.
I've never met a black person as brown as a paper bag who ever got a sunburn, at least that I know of. My dad is pretty pale, I think I would have heard about it.
As a counterexample, my bestie is "brown as a paper bag", and he was convinced he couldn't get a sunburn, up until he did.
Unrelated, he also swore he couldn't get poison ivy, until he literally rolled in it to prove it to me. I found the aftermath more amusing than he did.
I’m overwhelming white ancestry but with some remnant traces of melanated ancestry (> 1%) and I tan very easily. I’ve been mistaken for hispanic or Black before during the summer. My mom is much darker than me.
We both get sunburns. My even darker grandmother got sunburns. My Black friends get sunburns. I am not sure that you are correctly correlating your experience with actual facts about the sunburn resistance offered by melanin.