Dogs often cache food in your bed due to their instinct to hoard and store excess food in a safe and familiar place.