Meaning of Mexican-Spanish 'Papi'?

I’ve heard Mami and Papi used to refer to pretty much anyone, from parents, significant others, children, and even pets. I’ts mostly the Salvadorans I know that use Mami and Papi for their children and pets though.