
A fever is not always malaria. A quick test tells the doctor which medicine you need.
Many fevers are malaria, and many are not. A malaria test takes about 20 minutes here, and it tells the doctor whether malaria medicine will help.
If the test is negative, the doctor looks for the real cause, so you are not given medicine you do not need.