This isn’t quite true. The issue is that rodents evolve a lot quicker due to effective population size and generation time. As a consequence, the genetic divergence between rodents and humans is in fact greater than that between humans and pigs (see e.g.
https://europepmc.org/abstract/pmc/pmc1142312), even though pigs branched off earlier than rodents.