
These things are sent to try us
Emotional Tone
The phrase can convey a mix of sympathy and motivation when someone faces a tough situation. 
Not Literal
It's not meant literally but suggests difficulties are tests of character or resilience. 
Optimistic Outlook
Using the phrase often implies an optimistic belief that one can overcome the challenge. 