In Soviet case, the primary reason why people starved is because they have deliberately took away most of the food from the peasants to feed the cities. The cities didn't starve; the countryside did, which in turn prompted millions of peasants to move to the cities (and become industrial workers, which was the whole point).