Why would my doctor say this?

My doctor told me to increase bed rest. I'm 38+3 and he said I have edema and that I gained 3 pounds of water in a week. Lots of water weight. Why would I lay down more than walk or do other things?