Interns can be both paid and unpaid.
https://www.thebalancecareers.com/why-hire-interns-1986579
More importantly, the intern gains skills while the company gets cheaper labor. The end result of an intern is the hope the company will hire the person permanently to a position of greater responsibility.