So nirvana does not mean leaving the world behind; it is only a mental state of non-attachment and freedom from producing further karma.
Even though bodhisattvas choose to remain in the world of suffering to help others, they do not actually experience suffering themselves, because they have already tasted nirvana (non-attachment).