A compass is chosen over a ruler when you need to draw precise circles or arcs, which a ruler cannot achieve due to its straight edge.