However, there are only a limited amount of ways they can get XP, the main one being walking around a planet. A few specialised NPCs get a small amount of XP for doing their jobs as well (brawling, producing, etc).