British Prime Ministers are NOT elected. The British people did not "cast aside" Churchill. He retained his seat in parliament because he was (and still is) immensely popular. The party he was a part of was not. THEY were the ones that were "thrown out."
Whatever why did they throw out the Conservative Party in 1945? It was in the way of socialism. That’s why.