We can note that, where the manifold pressure is constant on the 1st graph (approx between SL and 12500 ft, and again between 19000 and 25500 ft), the engine power slightly rises from the lower altitudes upwards, until the rated altitude is reached. Since the throttle is more and more opened towards the rated altitude, the throttling losses are ever lower, thus the engine makes better power, and the line is slant.
The reasons for the increasing power between SL and rated altitude are more complex:
1) As mentioned, the gradual opening of the throttle or compressor control flap reduces throttling losses.
OK. But :
2) As altitude increases, ambient temperature decreases, and so does the temperature of the mixture entering the cylinders. This means that at constant pressure (due to regulation), mixture density increases, thus the power grows.
3) Finally, as altitude increases, ambient pressure also decreases (this is the whole problem with the S/C !) and thus the exhaust backpressure also decreases, thus increasing power further more.
It should also be added that at the beginning of the war, "altitude benches," reproducing the exact altitude operating conditions (temperature, pressure) in the workshops, were very rare. Therefore, many engine manufacturers calculate their curves by simply throttling the engine's air intake in order to reproduce the lowest ambient pressure at altitude. The influence of temperature and pressure on points 2 and 3 is interpolated using standardized correction curves, which do not ensure that the actual altitude performances are the ones calculated.
Regarding the issue of exhaust backpressure, there are NACA tests showing that its influence varies greatly from one engine to another, mainly depending on valve crossover. This obviously undermines the relevance of the "standardized" curve I mentioned above.