“It’s not the dog, it’s the owner.”
There is a self-selecting bias with pit bulls. People who buy and raise pit bulls often want a “mean” “tough” dog, so that’s what they get. You get a loving sweet pit bull if you raise them in a loving sweet way. Dogs are like children; they are very observant and pick up on even the tiniest of cues.
Although, like people, some dogs (of all different breeds) are born more aggressive. That can usually be corrected with training. It’s mostly nurture, and part nature.