Most non-Warehouse Buildings have adjacency bonuses, which provide additional Yield based on the qualities of surrounding tiles. These qualities vary per Building and can include Resources, Terrain, Quarters, Wonders, Improvements, and more. When Specialists are placed on a Building, they provide additional Yield equal to the Building's adjacency bonus. Buildings lose their adjacency bonus when not in their original Age unless they are Ageless.
Tip: Maximize your Yields by placing buildings next to tiles that meet their adjacency requirements, then adding Specialists to further benefit from adjacencies.