A swimming wallaby has been plucked from Sydney harbour by a passing ferry after the spooked animal was apparently chased out of its bushland home by a dog.