I don't know how it's intended to work, but the last area you view for a non-pet fight is what shows up in the list for the pet fight. So if you fight something in the swamp, then you can pick from the swamp enemies for the pet fight afterwards.