This was definitely not before pirating.
Some C64 games came on cassettes and were extremely easy to pirate (compared to cartridges). And even before that, arcade games were "pirated", so instead of a license an operator would buy a clone.
Of course the scale would be different than it was with the Internet around.