It derives from the Latin nescius, or “ignorant,” which comes from nescire, or “not to know.”
In the fourteenth and fifteenth centuries, the phrase a nice person connoted foolishness rather than agreeableness.
Over the years, however, nice has gained its more favorable, if bland, connotation.