The icons for mounting barbed wire to gates are reversed.
When you try to mount barbed wire to the top of a gate (via the gate attachments icon), it mounts the barbed wire to the bottom of the gate. Vice versa for mounting barbed wire to the bottom of the gate.