No the Law says they don't have to - it's quite simple.The law doesn't say they must. It is more sensible for an asylum seeker to claim asylum in the first safe country they reach, especially if the alternative is paying a large amount of money for a dangerous and illegal boat trip
What might seem easy to you, may not be for them.
As I say, get the Law changed, if you object.