Because of course it has to be one or the other, because politics.
More realistically it's likely a mixture of racism and sexism (and possibly, depending on dress style and expectations classism as well), entirely possibly to different degrees on the part of different drivers who didn't stop - and also on the part of the driver who did stop for the white woman stood near the black man.