This is due to the AirPods shutting down to preserve battery as it would also be annoying to try and use them and them being dead but it should show there they where last when the where powered on which is something.
The newest AirPods Pro 2nd Gen have always on case and build in AirTag features.
Mario_Man632 t1_jdkhslq wrote
Reply to Whats the point of this feature if you can’t play the sound/eventually conect unless the airpods are opened? by 0marek
This is due to the AirPods shutting down to preserve battery as it would also be annoying to try and use them and them being dead but it should show there they where last when the where powered on which is something. The newest AirPods Pro 2nd Gen have always on case and build in AirTag features.