The Democrats under Truman, rallied strong support from labor unions, from younger (Greatest Generation) voters (who were much more diverse ethnically speaking) and from African-Americans thanks to his desegregation of Army and the DNC adopting the pro-Civil Rights plank.
Dewey avoided specific issues and thus Republicans became defined by inaction on a range of issues in Congress like Civil Rights, as well as the action taken to curtail unions.
Because Republicans were not a national party and had to depend on the Northeast and Midwest, this meant that 1946 was built on a lot of urban seats, with a lot of exposure to the above hostile demographics that were demoralized in 1946 or disappointed with Truman's performance thus far. For instance Republicans won every Philly district in
1946 and lost all but two of them in
1948.