Do they still do those in some places / industries? For software jobs they wouldn’t do that. It was explained to me something about copyright and ownership if you pay someone to write code vs if they are unpaid.
I don’t know about programmers specifically but they use unpaid interns in droves in other aspects of the software industry, entertainment, politics, law, etc.