I think the issue is that most DSA curriculums do go super deep on things like sort algorithms or linked lists or whatever else. Whereas testing is usually barely taught in universities or colleges, and when it is taught, it's usually very lightweight.
You don't have to go super deep on all the sort algorithms, sure. That's like saying that learning testing implies writing a mocking library