Why are some legendaries part-varied?

Some legendary guns have part variance, and some are locked in no matter what. Wonder why?

In borderlands 2 I’m pretty sure what made certain guns legendaries was that 2 or 3 parts being unique to that weapon and the rest could be any other part the manufacturer used, so I’m assuming it’s the same here.