Sometimes, although they may not realise it the person who is ill/going through a difficult time tends to push away those who wish to support them because, I suspect, that they either fear that those who support them do so out of shadenfreude, the desire to take pleasure from the misfortunes of others, or because they are themselves defensive about admitting that their life has suddenly fallen in around them. I have had friends who in bad times tend to roll into balls like hedgehogs and repel all attempts to keep in contact.
About 5 years ago my best friend sent me an email cancelling a visit as she was going into hospital and said she would be in contact in a few days. A week later, having heard nothing and very worried, I rang every hospital in her area until I located her. But she had banned anyone being told what her health problem was. I drove 200 miles to see her, walked into the ward to discover she had terminal cancer and had only days to live. I was able to visit her over three days before returning home promising to return within days, but I didn't, she died 48 hours later.
Left to herself my friend would have spent her last days in hospital alone and unvisited, mainly, I think from the shock of such a sudden immediately terminal diagnosis, but also because she didn't want those who were fit and well to see her so fallen. I am not sure she realised that this was what she was doing, but many friends at her funeral were in deep grief because they felt so excluded from their friend's life when she was actually most in need of friendship and support.