Fair enough, but that's a different argument from "it is 100% categorically wrong for anyone to have to incur any material cost to access the laws". If travel has costs and you have to travel to the library to learn it, that already violates it.
And you're still sidestepping the issue of the codes having a cost of production like any intellectual work, in terms of deciding e.g. the optimal balance to put in terms of safety vs cost of a building code. It doesn't cost for each access, but they do have to amortize that cost, and it makes sense for the cost to be allocated toward those who do specialized work in that domain.