Of course they have.
All sovereign countries can choose to grant legitimate asylum if sought and granted BEFORE crossing the border. Even children can understand that.
Laws that can be ignored with impunity or not subject to some form of punishment are unnecessary laws.
Why do we need any of those? Life is hard enough without having laws interpreted by self-appointed delusional nut jobs.
That's why legal systems exist. D'OH!!
“That’s why legal systems exist. D’OH!!”
From U.S. Citizenship and Immigration Services
“To obtain asylum through the affirmative asylum process you must be physically present in the United States. You may apply for asylum status regardless of how you arrived in the United States or your current immigration status.”
https://www.uscis.gov/humanitarian/refugees-asylum/asylum/obtaining-asylum-united-states