This happens mostly as a result of energy crisis or emergency. In some cases it can be caused by the fact that the demand market is more than can be supplied. For example when a country is undergoing a drought and the power production is totally hydro dependent, their will be rationing of the electricity supply. Well, sometimes the rationing could be a result of damaged infrastructure too.