Indians courageously fought alongside the British troops, in Burma, the Middle East, and Europe, but Gandhi saw the British as a provocation for Japanese invasion and was jailed yet again, for launching a  Quit India  campaign in the year 1942.
Gandhi was jailed because he launched a Quit India campaign.