North Carolina exempts all Social Security benefits from income taxes. However, other forms of retirement income are taxed at the North Carolina flat income tax rate of 5.499%. You probably did not have enough state tax withheld to cover your state tax due for the year.
Please view the link below for more information.
https://smartasset.com/retirement/north-carolina-retirement-taxes