From what I understand, in the late stages of the disease, it's not necessarily the virus that's killing the patient. Often, the virus has been cleared and it's the patient's own immune response that's doing the damage.
If you can moderate the immune system's reaction you can prevent significant damage. HCQ is useful for this type of immuno-suppression.
Here's a pre-print of an article from a few years back which talks about HCQ and cytokine storms:
Scott W. Canna, Edward M. Behrens. Making Sense of the Cytokine Storm: a conceptual framework for understanding, diagnosing and treating hemophagocytic syndromes. Pediatric Clinics of North America [Preprint]. April 2012. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3368378/
Published article link: https://dx.doi.org/10.1016%2Fj.pcl.2012.03.002