The secret fraternal order of Free and Acceptable Masons has its origins in communities of actual stoneworkers, the masons who built cathedrals in the Middle Ages.
Eventually, lodges in need of new members started admitting non-masons, and from these lodges modern Freemasonry developed.