The H2A visa is for agricultural workers, specifically temporary agricultural workers. The H2B visa is for semi-unskilled, non-agricultural labor during seasonal or peak needs for these workers.