Foreigners and tourists are different groups, albeit with significant overlap. The techno scene has a problem with tourists in particular, whether foreign or not. A Bavarian tourist booking an all-inclusive guided tour to pose on social media is going to stick out all the same. Meanwhile an Algerian on a student visa who spends more time partying than studying will fit right in.