良 was historically the phonetic - Old Chinese reading roughly lyang shifted to niàng over the centuries, a fairly wide drift. It also adds a soft semantic flavour: good wine takes time to brew well. Same phonetic in
浪 wave,
朗 bright (preserving the liáng/lǎng layer).