The word "工蚁" is formed by directly combining the character "工", meaning worker or labor, with the character "蚁", meaning ant, to create a compound term where "工" modifies "蚁", specifying the type of ant as a worker ant.