Unless you mean intimacy, in which case just feed it and avoid dying or putting it back in its shell. I managed to get my pet poring to loyal in one day, but then it ran away because I forgot to feed it one time

But there's no way to make a pet level up, in that precise sense of the term, and furthermore pets do not fight (unlike homuncs)