Fences do not connect to walls despite iron bars and glass panes connecting.
Manually modifying nearby wall blocks and fence blocks to connect, via setblock or otherwise, show that they do indeed cleanly connect, so why this does not happen by default is unknown.
Current:
[media]
Fixed:
[media]
This is a feature request.