A 'friendly and courteous' friend of King Charles died in Wiltshire after it 'appeared he had fallen out of bed', an inquest was told.