One of the major focus areas of the last 100 years or so of management theory is row to reduce bespoke professional white-collar roles where judgement is involved to assembly-line workers. The thinking is, if you can't force the job to become rote, then you can at least apply a forcing function to keep them in line.
It's well known that even famous companies Meta, Google and Amazon track various forms of SLOC-related metrics, tickets closed, etc of their SWE. It's usually left to the managers discretion to use it, but its is there and is used often as a coarse measure of productivity.