We do something and we feel that we have did it for others. In reality, there will be a personal motive behind every act. There will be a personal emotion behind everything.
For example,
We help others to feel good about ourself, but we think that we are doing it for them.
If anyone is struggling LIKE US, we show empathy towards them. It is our pain which drives us, but not their pain. But we think that their struggle is driving us.
If we fail, we feel bad about ourselves that we have not contributed enough. That in turn makes us feel bad. But we think that we are feeling bad about failure as a whole.
Being mindful about personal intensions can help us in being detached and attached to things at the same time.