Mum has lost weight for no reason. Fluid found in lungs

My mother has lost over a stone in 6months for no reason. After chest xray it showed fluid in lungs.

She has been given protein powders and her weigh has gone back up. Would her weight go up if she has cancer? or could it be another reason.