Kubectl logs does not display old completed container logs

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

kubectl logs <pod_name>

output :
unable to retrieve container logs for containerd://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

kubectl logs <pod_name> --previous=true

output:
Error from server (BadRequest): previous terminated container “cronjob” in pod “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” not found

why does this error occur when I try to get the logs of error pod.