The stone mine is a production building that harvests accessible rocks around it using its workers.
Stone mines are harvester buildings. This building is one of the many production buildings that require workers in order to function. These workers leave the building during the day to chop rocks which produce stone, which is the basis of most other production buildings.
If the player has a Rock Teleporter, nearby Stone Miners can help mine the rock.