The answer is:
Many people died of starvation during the years when Kim Jong Un's government restricted North Korea's markets and agreements with countries. The funds were invested in Jong's whims, luxuries, and nuclear tests. The aid of the world food program was given, under the promise of the denuclealization of the country. This was the agreement and the main reason that North Korea began to receive aid from the United Nations.