Humans are the only reservoir for polio, so that’s not true. We could theoretically wipe out polio just like smallpox because there are no animal reservoirs.
Either they evolved from a different human virus, or from an animal virus.
Measles for example evolved from a livestock virus called rinderpest and lost the ability to infect cattle as it became a specialized human virus.