Tickets on Ameba Pico come from two main sources, and both are free.
The first is the daily scratch card, which you can play once each day for a guaranteed small payout. The second is the daily gacha draw, which occasionally hands out tickets among its other prizes — rarer, but worth the free spin every day.
Log in consistently and the two add up faster than you'd expect.