The most widely supported explanation is that a Dutch naval architect is said to have asked, when building a ship for Russia, what colors (what kind of flag) the ship should have. From that moment on, some influence would have arisen due to the presence of Dutch shipbuilders.
TYB