Mastery points are gained by completing certain main quest plot points. I got three by completing the mayoral election. They weren't all given at once. Not sure exactly when they were given