If I write a C program, especially with the appropriate compiler warnings enabled, or some filesystem code, there is a high chance that it will work across platforms with no further coding necessary. Anecdotally, the same cannot be said for CSS or SQL.
It doesn't matter much for SQL, because I always know what database I'm using, but for CSS, it's a massive pain.