It's like this:
Base game has quality levels 1-3 and 5 for Legendary. They are used as multipliers for bonuses (usually it's value * (1 + level * multiplier) for various things like health etc). Multiplier depends on the stat.
With the mod it's 1-8 and 10 for Legendary+.