https://imgur.com/a/RqXvaHZ
As seen in this video, if you change your loadout on the star chart screen, your companion is automatically unequipped. It doesn't seem to work on sentinels; I tested wyrm prime, a smeeta, an adarza, and a vulpaphyla and all of the "animal" companions were unequipped.