Also, it seems like Madara is in some kind of barrier which Obito accidentally passed through, subconsciously activating kamui as he lay dying. Since Madara says neither of them can physically leave, it suggests that someone other than himself constructed the barrier, I'm assuming, to conceal Madara's existence. I may just be reading too much into it though.
XI Wiki


