1. You can purchase them on the Credit Shop.
2. You can also earn them free of charge.
Please tap "Quest" and "Lucky" at the top left on ZEPETO Home, then you can get coins and zems via Daily Quest, Lucky Spin, scratch items and so on.
Besides, join various events of ZEPETO official account. There are many chances to win coins and zems.