It’s almost difficult to believe Kant wasn’t just pulling a Schrödinger and proposing a ridiculous thought experiment to illustrate the absurdity of genuinely holding those views.
The idea that morality exists only as an intrinsic quality of an action, regardless of context or consequence, is more theology than philosophy. It’s useless to the point of harm to anyone faced with a world beyond a university or a monastery.
And if they force the applicants to fill out the salary requirements portion of the application, they get data they can use to argue against raises as well.