In fact if you have ever red Stockfish's code you can see they take a lot of positional stuff in mind when evaluating a position.
Engines are improving, but their evaluation is still inferior to that of a strong human player. But their calculation ability more than makes up the difference.
However, that's why centaur chess is still meaningful. A strong human player with a solid positional understanding still has something to contribute that the engine lacks.
In fact if you have ever red Stockfish's code you can see they take a lot of positional stuff in mind when evaluating a position.