Whenever you have one force, you always have another equal and opposite. Some of these forces convert one kind of energy into potential energy. For example, gravity. Two forces push Earth and a block apart, against gravity. If you remove the force, gravity accelerates the Earth and block toward each other. Potential energy is converted to kinetic energy.
A counter example is friction. If a block slides on the Earth, they exert forces on each other. They slow down and come to a stop. (The earth moves so little that we usually ignore it). In this case, kinetic energy is converted to heat, not potential energy. You can't get the kinetic energy back like you could for gravity.
So your text book is right. You store energy in a system where there are two opposing forces. But ...
A spring is like gravity. Two forces on the ends of the spring can compress it, storing potential energy in the spring. If you remove the force, you get the energy back. You really mean the system consisting of the spring and the things pushing on the ends. But it is common to talk about the potential energy of the spring.
Likewise, it is common to talk about the energy of a raised block.
It is important to understand the point, because you need to know how potential energy works. But it is also important to understand when people are doing physics right, even though they are speaking carelessly.
It is a little like English teachers getting picky about minor grammatical points. Except that sometimes the picky details matter. This is one difference between mathematicians and physicists. Mathematicians tend to be picky and exact. Physicists tend to be looser.
For mathematicians, theorems come from proofs. Proofs have to be perfectly correct and airtight. If not, a false theorem can be proven, and this can be used to prove other false theorems. It can literally bring down the entire structure of mathematics.
For physicists, laws of physics are statements about the behavior of the universe. It is often complex and impossible to get the exact answer. Physicists make approximations all the time. Sometimes in calculations. Sometimes in the laws them selves.