If you say
that someone should thank
their lucky stars that
something is the case, you mean that they should be very grateful
that it is the case, because otherwise their situation would be a lot worse
Thank your lucky stars you're out of London.
COBUILD Advanced English Dictionary. Copyright © HarperCollins Publishers