Nice Once Meant Foolish

The word nice comes from the Latin nescius, meaning ignorant.
It arrived in English around 1300 with the sense of silly or foolish, then wandered through fussy, then precise, and ended up at pleasant. Words can drift a long way in 700 years.
Check it yourself
Check the historical senses under nice in the Oxford English Dictionary or the Online Etymology Dictionary.