Hi Reshma,
Thanks for posting your question here!
This could be happening for multiple reasons, either way the automatical removal of those pods/containers is/should be made by the Garbage Collector: https://kubernetes.io/docs/concepts/architecture/garbage-collection/
You can review the kubelet logs on the nodes where those pods were running and try to figure out why the containers are not being removed or not found.
You might also need to follow-up with the logs from the container runtime.
Hope this helps!
Best Regards