This all starts with a secret handshake between writers and yard workers, a mutual understanding that if writers don't leave cans behind, and they don't touch the identifying numbers on the cars, then there's largely no harm.
Writers will go to meticulous lengths to respect the latter rule.