It goes straight to your account — pets are attached to your profile rather than to a room or a specific avatar state.
Once purchased, you'll find it in your inventory alongside your other items, and from there you can equip it so it appears with you. If a pet you bought isn't showing up, log out and back in, since the inventory occasionally needs a refresh to register a new purchase.