Frogs are a lot smarter than people give them credit for. I can assure you that they do plot and think some things through. He may have been planning to expand his territory to your bed