Are double barreled names now because the mother didn't take the father's name?

I feel that double barreled names used to be only for the aristocracy. But I see more and more of them and one explanation I was given was that this is what often happens if the parents don't have the same surname. Is that true?