What does rapid breathing mean when an old person is on his death bed?

Several reasons. This is a question for your pmd. A few possibilities are congestive heart failure or terminal pneumonia. If the patient is terminal depending on your philosophy of life, either nothing is done or a specific diagnosis needs to be made and appropriate medical treatment needs to be established.