It also depends on what it is. . . like if I give the BBEG a spell that lets him project his image, what does it matter if later on in the campaign they find the spellbook containing the ritual of project image? They can do it if they meet the requirements.
If it is the ritual of razing the capital city the PCs operate from, well maybe they gain access to that too, but why would they want to do that? Or maybe they do!
Also, don't underestimate the power of "that's just something they can do." For example, the first time the PCs in my game (which has no rogues) ran into a foe with the Cunning Action ability and thus could disengage as a bonus action they were up in arms! "You can't do that! Disengage is an action!" To which I responded, "It is just something he can do. . ."