Or pay people less to do the pleasant jobs.
This is how America treats its teachers. Teachers want to do the job, so skimp on their pay and call it a budgetary victory.
Other countries will choose to value teachers, and pay them well, and generate more competition for positions, and reach a higher general level of qualifications & abilities.