Sounds like you maybe learned about food preparation in a factory setting, which is different than in a kitchen setting.
Per USDA and CDC guidelines, you shouldn't wash poultry before cooking because you're more likely to spread any contamination, you're unlikely to remove contamination that's present since it's not like it just lives on top of the tissue, and it's already been washed during processing.
Obviously if you're the party doing the actual processing for distribution then things are different since you need to remove potential traces of feces, dirt or other surface contamination.
What soap do you use to wash your chicken?
Washing the chicken doesn't fix the problem you're concerned with though. If it did you could wash the chicken and then just eat it raw.
The bacteria is inside the chicken, potentially, where you can't possibly remove it by washing. That's why you have to cook it.
Cooking kills the bacteria, and if you have to cook it then the only thing washing will do is spread any surface bacteria around to other surfaces and gives you wet chicken.