Once a pet has been placed in a ready slot, it cannot go back into your pack. If a game effect forces you to put a pet into your pack, you must instead discard it. One such game effect that might force this is the Native enemy skill "Freeze" in Skyrim.