“wayside” seems to be defined as “The side or edge of a road, way, path, or highway.”
It ended in the tag as someone invented historic=wayside_shrine
without inventing tagging for shrines that are not historic and/or not on the side of road/path.
It ended being used for all shrines.
Yes, it is irritating.