It’s because of how they move. Just like you duck when a coworker throws a crumpled up piece of paper at you, ducks make a downward bobbing motion in the water especially when feeding. It’s based on the Old English word “ducan” meaning to bend down low or dive.