It's because a longsword has the versatile trait so the game currently defaults to it being used two handed if the second hand is empty.