Not all Scots wrote in the dialect of Burns.
One who didn't, Sir Walter Scott, wrote "The Lay of the Last Minstrel" (1805).
Scott's long poem tells the story of an ancient harper who's seen better days. It was wildly popular, and Ritchie must have been familiar with it.