It's more of random chance. You use three (or four in double battles) Pokemon, so when a Pokemon which is strong against one of yours shows up, some people are inclined to shout "OMG HAX." The trainers have pre-set Pokemon, which you can find on Serebii.
The trainers on the Battle Subway have different combinations
Here is the Serebi link
Hope this helps