Question: how do naics codes get assigned?
Answer: The U.S. Census Bureau assigns one NAICS code to each establishment based on its primary activity (generally the activity that generates the most revenue for the establishment) to collect, tabulate, analyze, and disseminate statistical data describing the economy of the United States.