These 'long' illnesses are simply persistent infections where the virus in question has evaded the immune system and taken up residence in one or more tissues. Clear the virus and the individual recovers.
As our diagnostic capabilities grow beyond their current primitive state, we will discover that the vast majority of these cases are persistent infections either directly or indirectly causing symptoms.