Perhaps the hospital staff were the informants.
I ordered the Death Certificate (not in Scotland) of a gtgt-aunt of mine. She'd been widowed for about ten years when she died in hospital at the far end of the country. She is buried with her second husband. His death was recorded under the name he was known by when he married but it seems they were never known by this name.
They're on the Electoral Roll with a different surname, which is a name she was using after leaving her first husband but I don't think she'd been married to anyone else in between. She continued to be known as Mrs H and after they married he was also Mr H. But she didn't remarry as Mrs H. They appear to have been living at the same address for several years before they married.
She is buried with her second husband. The grave only has the surname H at the head and Mum & Dad at the foot. Their Death Certificates say they were both childless, so the 'Mum & Dad' is puzzling. Her first names, age and place of birth are correct, but the space for her parents' details is blank and so is the section for her maiden name.
Maybe one day a Ms or Mr H will take a DNA test because their grand or gt-grandparents 'Mr and Mrs H' are their brick wall! I live in hope. My thoughts are that after leaving her first husband she had a child and called herself Mrs H. This was around the time of WW1 so it wouldn't be difficult to pretend to be a widow.
She paid for the grave herself.