You 100% did the right thing. Just think of how much time might have actually passed had you not heard that poor thing, and, what could have happened. I'm sure it was a shock to him, but possibly more so because, it seems, he had no idea the little girl was even out of the house!
All that matters is you know your intentions, and, that girl is safe in her home. I'm sure her father talked to her more about what happened and the girl told him exactly what happened. He should be grateful you happened to hear her!
--The member formerly known as Demonica
"You must be the change you wish to see in the world."
- Mahatma Gandhi