The person finding the baby was the person who eventually adopted him. The judge asking the guy to adopt the baby was the same judge that performed the wedding of the couple doing the adoption. Just so many great details.
Here in the UK, I used to work with a guy many years ago who was trying to adopt. He and his wife had to go through months and months of vetting and paperwork to be allowed to become adopted parents. You basically have to prove that you are fit to be a parent. And yet in this story a court basically says "hey, you wanna adopt this baby you found? Yeah? Here you go."
Sounds like this guy I knew should have moved to America. He and his wife could have just pulled up to an orphanage, said "I'll take that one", and been parents immediately - if this story is anything to go by.
Basically if we're going to take a child not presently abandoned or in danger, and place them with someone, we need to know damn well that we're not worsening the situation for the child.
But if you have a child who was already abandoned and in danger, and you start looking after them unprompted, the situation for the child has already improved and almost any other action will worsen it - i.e. it's generally accepted that children being wards of the state is a worse outcome in almost all circumstances compared to a dedicated parent.
A comparable example I suppose would be the question of what's the best strategy for seeking help if you're lost: basically, statistically, it's approach the first person you see and ask for help. Because the occurrence rate of predators in the population is low, so the first person you see is unlikely to be one. But if you stand around for a while looking like you need help, well now you're obviously a target and the chances of someone who approaches you intending ill-intent rises.