There was a great theory about Obito's MS.
Obito experienced the loss of Rin when Obito was being crushed by that rock.
It wasn't Rin dying, but he still felt the emotions of losing her through his own death and watching her fade away.
Thus activating his MS ability.
I'll leave it simple, but that's the concept.