Giving up attachment to the world does not mean that you set yourself apart from it. Generating a desire for others to be happy increases your humanity. As you become less attached to the world, you become more humane. As the very purpose of spiritual practice is to help others, you must remain in society.