The origin of double inflation