The Shrine of Learning is a randomly generated dungeon object.
It appears to be a table containing an open book and emitting a faint purple glow. Each one can only be used once, and when used will either raise or lower the player's stats. If this causes an item to become unusable, the item will automatically unequip itself. If this causes the magic level to be too low for a spell, it will remain in the spellbook but cannot be cast until the player raises their magic again.