In a broader sense, the term "pillar" is used to describe anything that provides major structural support. So the part of a microscope that holds the lenses rigidly in place is called a "pillar" even though it is not made of stone and is not supporting any part of a building.
The term is also used metaphorically to describe core elements, as, for example, in the "Five Pillars of Islam."