nice: [13] Nice is one of the more celebrated examples in English of a word changing its meaning out of all recognition over the centuries – in this case, from ‘stupid’ to ‘pleasant’. Its ultimate source was Latin nescius ‘ignorant’, a compound adjective formed from the negative particle ne- and the base of the verb scīre ‘know’ (source of English science).
This passed into English via Old French nice with minimal change of meaning, but from then on a slow but sure semantic transformation took place, from ‘foolish’ via ‘shy’, ‘fastidious’, and ‘refined’ to on the one hand ‘minutely accurate or discriminating’ (as in a ‘nice distinction’) and on the other ‘pleasant, agreeable’ (first recorded in the second half of the 18th century). => science[nice etymology, nice origin, 英语词源]