You are certainly in a community but you are probably not much of a part of the community you're visiting. And if my experience as someone who grew up in a tourist destination is any guide, the locals whose job it is to be nice to you probably swap stories about your cluelessness about the local culture, and a lot of the locals whose job is not being nice to you view you with vague disdain at best.
You are raw material for the local economy and, we will generally do our best to politely pick you up by your ankles, shake you until money stops falling out, and send you on your way, while making sure you have a good enough time doing this to come back again once you have more money.