Ranking Frankfurt higher than Munich is a joke. I lived in both cities (currently living near Frankfurt) and it's not even close. Infrastructure, cultural and recreational activities, architecture. None of these things are even in the same ballpark.
I've also lived in both and Munich is definitely the more expensive of the two and afaik housing affordability is a factor, too. Maybe that played a role.