This is essentially a complete fabrication. If it's on public repo, ready or not, someone will use it for prod.
This is like saying laws around seatbelt wearing are a fabrication because some people ignore them..
Code being ready for production has nothing to do with code being shared privately nor publicly.