You earn EXP that will count towards your rank by completing missions and quests. Higher rank increases your team Cost Limit, Max Stamina, number of friends, etc. Upon ranking up, your stamina will be fully restored as well so make sure to spend as much stamina as you can if you're about to rank up.