You deworm the sow para di sya maging source ng worm ng piglet. But hindi lang naman sow ang possible source ng worm.
Enviromental factors should be considered also. Including but not limited to soil/pen, feeds, bugs, rats, bangaw, water source etc.
So, you are trying to eliminate all possibilities, even dewormed animal are still possible carrier of ova's of worms.