It came up for a direct vote? Or did politicians who never ran on mass immigration platforms just kinda decide to introduce legislation?
People tend to conflate the acceptance of mass immigration in western countries (by characterizing opposition as horribly racist) with tacit approval by the citizens.