I'm guessing that the AI sees the destroyer is a bigger threat (even at distance), the crew's not thinking too highly of you for firing at a merchie instead.
Remember, 5000 yards on the surface is NOTHING for a destroyer to cover. Even if you hit the merchie several times then decided to try evading the DD, he'll be on you before you can even submerge.