Like, what if his name just happens to be Montgomery Scott, so all of his friends started calling him “Scotty,” and then every time he was introduced to a new person, they would be like “Oh, are you Scottish? My uncle was Scottish!”
And finally, he just gets sick of explaining the situation, so he starts replying with “aye, laddie!” But then it turns out that the person he said that to was Captain Kirk, and he doesn’t want to admit that he lied to his new commanding officer, so he has to keep speaking in a ridiculously over-the-top brogue and commenting constantly on how much he loves drinking Scotch, and by the time that he realises that Kirk would have found humour in the situation, he’s in too deep and can’t stop pretending, and it gradually just becomes his normal speech pattern.
Then, years later, the Enterprise is being inspected by a Starfleet engineer who’s actually Scottish, and Scotty takes him on a walking tour of his warp engines and is all like “Auch! Here be me wee bairns!” and the other engineer is just like “what the fuck is wrong with you?”
I take the fact that James Doohan is Canadian as evidence of this theory.
I really didn’t have to work, shall we say, with “Star Trek.” It was natural. When I opened my mouth, there was Scotty. It’s like I tell people; what you see in Scotty is 99% James Doohan and 1% accent.