The "magic fine" were not random and unjustified. Those country were already borderline, if not fully crossing the border, with a lot of regulation here. Country like France and Germany were sick of seeing a lot of profit made within their border while tax revenue flee elsewhere.
The fine they given were not from vague plan, they were within the strict boundary of the law that those company keep playing with. Those same company are pushing for stricter and clearer regulation but are being faced with the opposition of other EU member who kind of profit from the practice of these company.