This quote means that having a sense of purpose and having a sense of self are closely connected. When someone has a clear idea of what they want to do, or a goal they want to achieve, it gives them a direction and a focus for their life. Having this plan and destination for their ambition can give them something to work towards and hope for in the future, which can help to give them a sense of purpose and identity.