Why did the British rearm the Japanese in Vietnam?

The Japanese were in Indochina...but they were surrendering to the allies...the French re-entered Vietnam (and Indochina) in 1945...the British were involved with Malaysia and those regions.