Much like the US, they can simultaneously have an economy that SHOULD collapse, but also be so ingrained in global trade that nobody is actually willing to call them to the carpet.
If China were Greece, they’d probably have gone bankrupt multiple times already.
But she really, really wasn’t. And she wasn’t even Egyptian, she was Macedonia Greek (and it shows).