I was told that Kipling wrote the poem as a metaphor, to let off steam at the fact that American "pirates" were publishing his stuff over here, and not paying royalties, and he couldn't stop it because there was no international copyright agreement at that time.
P.