When I first got my dog he slept in the bed with me. Now he doesn’t why?

When I got my dog he got on my bed all the time. Here lately he hasn’t gotten up on my bed unless I’m not home he will be on my bed. Why won’t he get on the bed with me when I’m home?
3 answers 3