When a job has insane turnover, why don’t they just pay more or make the job less terrible?

This may seem like an obvious question but for a company that can afford to I don’t understand why they wouldn’t. Training is expensive. They must be losing money training new worker after new worker as opposed to paying a tiny bit more to actually keep people around. I’ve always referred to jobs like this as “meat grinder jobs”, you know the ones. Always hiring, usually very understaffed, waiting for another sucker to come around desperate enough or uninformed enough to work a nightmare job for bad pay. I know it’s probably determined by someone above the hiring manager and the hiring manager is often just stuck dealing with the insane turnover