Why is this answer
not considered a spam? The question is old and has nothing to do with this commercial software
I wasn't the moderator who handled this flag but I'd have done the same too. I don't believe there's any evidence that the user who posted that answer is affiliated with Intel's Fortran team and using that answer to promote it.
There might be problems with that answer, but promotion isn't one of them.
In the more general case though spam usually has a bunch of "tells" that give it a certain smell. You'd be surprised how much spammers (even astroturfers) give away as solid evidence:
often give the game away without needing a diamond to see it.
Spam has a pretty distinctive smell usually too:
If you dig around on something that's not a clear cut case flag "Hey, this smells pretty spammy because X" - I'll usually validate as helpful, even if I didn't agree in the end because of private info. Even a declined spam flag isn't something to get worked up about though, it's the only way we have of saying "Hey, I looked into this and on balance I don't agree". If it looks fishy dig a little, report what you find and don't take it personally if we disagree when we look at it with a little extra info.
The end decision is almost always based on diamond or at least 10k information though.
Considering that the last question of the OP was "What is FORTRAN 14?", I'd even say that the flagged post does in fact answer the question partly.
I don't say that it is a complete or good answer, but IMHO it was a honest attempt to help by answering a question.