A large number of available and accurate tests definitely mattered. But that is not merely enough, someone had to make decisions and coordinate the efforts. I have no idea who that was, but they did a great job.
they weren't only testing everybody on a massive scale, they also assigned a team of like 5 people for every positive case to trace everyone they could have come in contact with