I figured it dates back to when you could win free games from flipperless machines and sell them back to the house for money. It was a way around direct gambling and then they cracked down on that but the free game feature probably still enticed players. Now it was random instead of skill based.
Perhaps that, for a time, evaded any legal troubles?