Thomas Campbell was one of the most popular poets of his time. That song was republished many times in his lifetime, with his name on it, and he described explicitly how he came to write it. You might as well doubt whether Woody Guthrie wrote "This Land is Your Land".