Out of curiosity, what's your source for that?
Which for some places in Europe it might be a good comparison, but for others making €40K a year might get you a far quality of life than what you get in the Bay area or the US in general for $100K (e.g. larger house, better savings, insurance, 4 weeks paid vacation, decent working hours, etc).