The real life justification being that Berlin was trying to forestall America's entry into the war at all costs. Even though the US was obviously giving support to England, Germany had to keep up the illusion of diplomacy and could not openly attack US ships as that would have been all the excuse needed for America to enter the war.
So it does make geopolitical sense. In a way.