You can name a pet. You tie them to one place with a rope. You can milk sheep or cows. You can load small pets into pet carriers or bird carriers, and larger ones into vehicle mounted livestock stalls for safe transport in vehicles.
I have a medium priority task to rework vehicle collision so creatures in vehicles don’t cause collisions, but the vehicle collision code is nasty so it’ll be a while before I get there.