The water management infrastructure is excellent. But it was designed to cope with century floods, not the kind that happen every other century.
Edit: the drainage systems were in fact designed to cope with a once-in-200-years flood. But this was a 500 year flood. A quarter of Hong Kong’s annual rainfall poured down in a day—and this is a place with notorious rain storms through the summer