Pets in FlyFF start as eggs, and there are a couple of ways to get one.
Defeat monsters of level 20 or higher and they may drop an egg. Once you have one, it needs hatching.
A useful detail: eggs are tradable, so you can buy one from another player rather than farming the drop yourself. That's often the fastest option if you're after a particular pet.