"Someone else replaces the good program with a malicious program" is the attack vector people are worried about when talking about sha256.
But, since you're downloading & running code written by someone else, it seems weird to talk about that but ignore "what if this program I'm downloading does something malicious".