Not everyone needs a visa to enter. For those, CBP has to perform a level of scrutiny, and the need to determine if the visitor is really a visitor. A visitor should come here to visit, not seek employment, support themselves, and return home. Part of phone checks for visitors is to do a check to see if there are plans to work in the USA. Should there be rules around it? Yes. Should they be able to do it? Yes.