Then he explains how He will be honored by life and death, saying: for to me to live is Christ, and to die is gain. Now life produces activity, for that seems to be at the root of man's life which is the principle of his activity. Hence some call that by which they are roused to activity, their life; as hunters call hunting their life, and friends their friend. So, Christ is our life, because the whole principle of our life and activity is Christ; hence the Apostle says, for to me to live is Christ, because Christ alone moved him, and to die is gain. Here the Apostle is speaking precisely. For... a person regards it a gain when he can improve the imperfect life he has; thus a sick person regards a healthy life a gain. Our life is Christ: "Your life is hid with Christ in God" (Col. 3:3). But here it is imperfect: "While we are at home in the body we are away from the Lord" (2 Cor. 5:6). Therefore, when we die in the body, our life, namely, Christ, with whom we are then present, is perfected in us: "He gives to his beloved in sleep" (Ps. 127:2); "The time of my departure has come" (2 Tim. 4:6).
Source: Commentary on Philippians