After he unknowingly stows away on a star freighter while searching for food, the captain keeps him aboard for cooking, cleaning, and other menial tasks.
This is done, for example, by repeatedly participating in challenges, quests, tasks and events which reward experience points for performing repetitive, often menial challenges.