This has happened along the US-Mexico border and US Ports of Entry many times, as well as other places;
Asian refugee crisis: trafficked migrants held off Thailand in vast 'camp boats' | Global development | The Guardian
Making the journey as difficult as possible results in these sort of abuses and tragedies. You have to ask yourself why would someone risk their life to flee their home country ...