Famines were extremely common before the CPC came to power. Most Chinese people lived in extreme poverty, and life expectancy was less than 35, with no significant improvement under the KMT. In between Mao coming to power and his death, life expectancy in China nearly doubled. Today, average life expectancy in China has exceeded that of the US, a feat that would've been unimaginable back then.
It's true that Mao made misteps (which the CPC readily admits), but those specific, dramatic events have been disproportionately elevated to obscure the more general trend, which has been drastic improvements in the lives of the people of China.
Of course, in addition to minimizing the frequency and severity of famines in pre-industrial China, your history books likely did not place the same level of blame on the British for the intentional famines which Ireland and India were subjected to, in which Britain did not only refuse to provide aid to their colonial subjects (often on the express basis that it would motivate people to work harder), but also did not cease their plundering - in both cases, food was exported out of the country while the people starved.