I think the misunderstanding here comes from the language used, and not so much the differential calculus (might want to tag this as "logic" or something). This is a good resource to understand what necessary and sufficient mean in logic, separately and together.
The most useful thing you can do to better understand these is think of counter examples: what is something that is necessary but not sufficient? A good example from that page is the following.
P: Oxygen exists in the atmosphere.
Q: Humans exist.
Clearly P is necessary for Q. Having oxygen in the earth's atmosphere is a necessary condition for human life. Crucially, though, having oxygen will not guarantee human life – there are many other conditions needed for human life other than oxygen in the atmosphere. In this way, P is necessary but not sufficient for Q.
Now consider this example.
P: All men are mortal.
Q: Socrates was mortal.
In this case, P being true always means Q is true (we all know Socrates was a man). There is no possible way P could be true without Q being true. Equally, Q couldn't be true without P being true. P is necessary and sufficient for Q.
TLDR:
- P necessary and sufficient for Q = P $\Leftrightarrow$ Q,
- P necessary but not sufficient for Q = Q $\Rightarrow$ P,
- P not necessary but sufficient = logically invalid.
What your textbook is saying, then, is that that condition implies necessarily the exactness of the differential.