Using pure SHA for passwords is almost equally bad as MD5, because the biggest problem with these algorithms is their speed (MD5 is completely broken when it comes to collision resistance, of course, but that's not the main concern with passwords). Instead, you should use functions like bcrypt or PBKDF2, which are purposefully built for passwords.
How are people still learning about basic MD5 for security twenty years later? Are the resources people use that old?
Probably because a lot of computer science programs are stuck in 90s era curricula and many don't teach web development whatsoever.