As said already, our mind associates our bed with relaxation, rest, and most importantly, sleep. If you try to work there, it'll be very difficult for you to be productive because of the mental signals of rest and peace. That's one of the reasons you can't exercise or stretch on the bed. You'll be found sleeping some moments later! Best, separate your workspace from your bed, even if just by adding a small chair and desk.