I have been puzzled by this too, especially given my general perception of Chinese leadership as highly competent. My best theory is that Chinese people are very paranoid about infectious disease, and that the leadership believes that their political legitimacy would be threatened by mass infection numbers.