They get that data the same way they always do, from people seeking medical attention. People who are symptomatic for anything ( flu, cold, etc) should always isolate themselves.
What’s madness is asymptotic people testing themselves.
There's a lot we don't know about this new strain of virus, which makes it hard to contain it. Testing provides data points. I'm not sure why it's so hard to understand that having more data as opposed to less when facing an unknown is a good thing.