If you paint the background first, it's done and you don't have to worry about it. Nor stress trying to paint it up to your subject but not over it. But doing so means you need to have planned it out, visualized the colors in it and how these fit with the subject of the painting. Not that you can't change it later on the painting, of course.