The easiest answer is to avoid airports if you don't want to go through screening. You might ask if you could just ride through the X-ray instead of a physical search.
You were patted down because something on your body or clothing alarmed. I would suggest you don't wear loose fitting clothing or jewelry. TSA is doing their job to keep ALL passengers safe.
Even if you showed up in a bikini idk if that would change anything. Maybe email the airport, but I don't know if that would do any good as they are federal employees I do believe
Thanks! Your answer is awaiting moderation.