Turrets gain quality by killing
Small changes concerning balance, gameplay, or graphics.
New ways to deal with enemies, be it attack or defense.
When turrets go to the next quality tier (while using the infinite quality mod) it caused circuit connections to get cut, while this doesn't happen when machines level up from the level up mod which also have a gain quality type action.