Yes, you are right about this and tourist traps are a global phenomenon.
In Barcelona, for instance, in places where tourists don't go, restaurants might be really bad, which never happened to me in Italy.
There's also a culture for keeping food as a family/friends value, which I don't see everywhere else.
If you only had a chance to fall into the tourist traps around Piazza Navona I stumbled into....