It's probably coincidence. I don't think there is any particular synergy there. Infernape's weaknesses (water, ground, psychic, flying) are neutral on Swampert so I guess that's better than SE but it's nothing particularly special.
Swampert and Infernape are both heavily used Pokemon. That's about it.