From Middle Low German kuntschap. Surface etymology is obsolete kund (“known”) (compare kundgøre) + -skab.
kundskab