Keeping the Holiness in the Beit Midrash(Masechet Shabbat Daf לג: Perek 2 Siman 264)
(condensed from Ein Ayah, Shabbat 2:264)
Gemara: The Romans said: “… Shimon, who criticized, shall be killed.” He and his son went and hid in the beit midrash (study hall).
Ein Ayah: The many causative events that Hashem orchestrates are always designed to arrange every matter in its correct place. According to Rabbi Shimon and his son’s high level, the “air of the world” and the normal social setting were not fit to handle their highly demanding guidance and standards. This is what caused Rabbi Shimon to protest the common practices and leadership of the time. When great spiritual ideas are not ready to be accepted practically, it is negative for them to be revealed because their lack of acceptance lowers their honor. That is because it is not possible to give the due respect to ideas that people cannot implement and will therefore reject.
For this reason, the divine plan was for Rabbi Shimon and his son to hide in a beit midrash. Before the spiritual elite, albeit lower than their own, they would be able to share their deep ideas. Once the higher echelons were able to accept these ideas, they were able to “spread out” in the world, so that the general public could be more capable of accepting them. At least, it enabled their teachings to be preserved for those in future generations who would look for such lights.