Possibly borrowed from French happer (“to bite, snap”), but both are ultimately imitative either way.
Write this word
Practice speaking and memorizing "hap" and many other words and sentences in Dutch.