There are many reasons as to why this is so.
One is on a spiritual level: for example, some of the youngest saints or blessed ones in the Catholic church died young, but the impact of love, work and miracles is everlasting. When our work is done, we can go. That’s not to say that others who do good work don’t die early, but that’s one example.
Wheras the wicked don’t always die, maybe because God is giving them many chances to repent. The aftermath of their wickedness, such as a savior or cleanup, is a way to make God glorified and have others turn to him in praise.
It could also be a material reason. The wicked have more resources that allow them to stay alive longer. Access to health care, bodyguards to protect them, and striking fear into the hearts of those he leads.
On the other hand, the good at heart may not always have access to those resources, or their sickness is used to glorify God also.
Hope that makes sense! Happy Wednesday!

Thanks so much for your response. Am really impressed with the way you analysed it. I also agree with you.