You're implicitly making a claim that's something like: "If a government hosts elections, any decision made by that government reflects The Will of The Majority in the country it rules." That's not true at all.
Let's set aside the complexities of how governments are formed in a parliamentary system, and also ignore the subversion of representative government by lobbying. This is really simple: there was no vote on this in any western government. And in fact, political parties that explicitly oppose further mass immigration to Europe are gaining rapidly in popularity. But the governments actively subvert them. For example, there is talk of outright banning Alternative for Germany, a political party in Germany opposed to mass immigration.