Anna's Death

Sorry if that's a spoiler for new viewers, but I am wondering how she contracted the polio virus. I think the show tried to demonstrate it when she cut herself with a dirty/rusty knife. I don't know a lot about polio, but I do know that that was one way to get it however very rare. Can any fans explain how it happened?