Sometimes being compassionate can be necessary. Not only being compassionate but also being empathetic.
Without being compassionate and empathetic, it will be hard to change the other person’s state. Motivational words may not work always, sometimes understanding the situation and the other person’s state is going to be important.
But, it’s not always the case, sometimes people cry over small things, they complain, and you need to decide if is it a real situation or just complaining. Be careful when talking with the people who always complain/reason why things cannot be done.