The visa system is a tool for preventing terrorists from entering United States.
The visa function attempts to facilitate legitimate travel while at the same time denying entry to the United States of certain individuals, including potential terrorists.