Leetcode is an example of a company who sells to both sides: the candidate and employers. This results in an arms race which is great for them because it results in more revenue.
You don't have to participate and there are plenty of companies who don't optimise for people who spend their time cramming for the test.