PC games don't have to do this. Steam doesn't have a policy that achievements must prevent cheating. This is entirely a developer choice.
The main reason cheats have disappeared from mainstream games is because many of them prefer to sell them to you as micro-transactions, item pack DLCs, etc.