Sounds like your boss is a big iron dinosaur. Back in the '70's and early '80's it was commonplace for programmers -- before we got all snooty and self absorbed calling yourselves "developers" -- would charge for projects by the K-LOC. Thats literally basing the price of a program or writing a program based on the number of lines of code it is.
This led to programmers who would intentionally pad their projects with uncalled code, comments, and just plain bad practices to artificially pad the bill.
Honestly a lot of today's code feels like that's the goal. See mind-numbingly idiotic halfwitted trash like front-end frameworks, where somehow they've suckered people with propganda and bald-faced lies into thinking that writing two to ten times the code, that relies on library files more than twice the size of what the total code should be in the first place, reeking of WET (we enjoy typing), is somehow magically "easier" or "better for collaboration"
WHAT A CROCK!
Consistently the past twenty years I've walked into other people's codebases, and by the time I've left I've reduced the total code side 50% or more, resuting in faster, cleaner, easier to maintain systems. How does your boss feel about programmers who's total "code written" takes lines and lines out of a codebase?