You can mass produce anything, but it has a cost.
I have the impression that some people imagine that you can produce now 10x more doctors at the same cost that you were producing one doctor 10 years ago. Mostly because some tasks (even programming) got many times "more efficient" I feel people transfer to easy to other topics.
Even worse, education expenditure is decreasing for many countries! (see some examples: https://ourworldindata.org/grapher/education-spending?tab=li...)