Printing massive amounts of money is what caused the inflation.
Adding millions of people and not building anything makes housing prices skyrocket. One of the two needs to be dealt with and, since immigration also makes salaries plummet for the most vulnerable, why not kill two birds with one stone.