It's simple. Covid isn't going away. This is an endemic, not a pandemic. Variants are becoming ever-more transmissible, like Omicron. It's a battle you cannot win.
China had a successful initial strategy but that strategy could only have worked if Covid was eradicated. Covid is here to stay. That means that perpetual lockdowns have to be abandoned.
As Darwin said: it's not the strongest, biggest or the fastest who do best, but those most able to adapt to new circumstances. Right now China is failing that test.