Tsa pat down 2 & 6 year old

Tsa pat down my 2 and 6 year old because they touch me & I was selected as usual for ssss security check because my name Can they do that? when I ask why my kids the answer was because they touch me came in close contact with me so they have to pat down them & my wife in a very rude manner I was in shock. till this day I cant forget what they did to my children how can they do this to childrean