I think you missed that the number of people with either the skills or desire to go through the time and take on the debt to be a specialized medical professional is smaller - significantly smaller - than the number of people that are willing to enlist, become a fireman, or be a police officer. Also, police officers and firemen are well-compensated when you count in the costs of their public pensions, health benefits, overtime, etc... Those are highly paid working class jobs. I won't speak for the military.
I am honestly confused about the premises that you are using to come up with which professions are worthy of a certain salary. In your ideal world, who ought to be the arbiter of compensation?