What is the difference between libraries like C++/PDCurses and SFML?

I have read that PDCurses is a library that can be used to create 2D games however SFML is also a library but they are not in the same category I presume according to what I have read:

“The system terminal is a part of your operating system which allows communicating with the computer using text. If you choose to do this, it is also a good idea to use a library — but now, you use a library for creating programs working in the terminal, rather than a game library. Here, the most popular choice is Curses”

Can somebody explain the difference?