The first real language I learned was C++ and I was decent at it (best in class but mostly stuck with console based programs, nothing advanced like GUIs that year). I have never used it at work. If you look at job boards, it's overwhelmingly stuff like Java, JS/TS frameworks, etc. Why teach it when it seems like less than 10% of postings are looking for it? Might as well teach other languages and just learn it if you need it.
Frameworks are the opposite of what universities should be teaching. I had this argument with another classmate when I was there who said they should be doing that. The point of a university is to give students the skills to communicate the ideas needed to use and develop frameworks effectively, not to teach you particular frameworks.
Especially considering that the hot framework you are studying will probably be out of fashion by the time you graduate. If I was paying American college tuition rates and sat in class studying Next.js I'd demand a refund.
Why teach it when it seems like less than 10% of postings are looking for it?
And we're back to the discussion of what is the point of a University CS education. I would argue that learning something like C++ is important for the same reason something like Lisp or Haskell is important. Not because it will necessarily help you get a job, but because it introduces you to new concepts and a new way of thinking about programming and computation that will be useful no matter what language you end up programming in for a living.
I don't think there are any main concepts that I learned in C++ that weren't also covered in other courses, such as Java, assembly, and COBOL. If we're going to teach different types of languages then they should be truly different, such as the ones just mentioned.
Of course you can teach most concepts in most languages, but when it comes to understanding concepts like stack vs heap, pointers to a value vs the value itself, move vs copy semantics, pass by reference vs pass by value, explicit vs implicit memory allocation and deallocation, and so on, I found C++ pretty useful.
University isn't there to teach any languages. But it is there to provide the foundation and theory. If somebody wants practical C++ then go to a further education college.