It’s just history.
The accompanying article is horrible.
Read the Wikipedia article on the Treaty of Tripoli instead.
Obviously, the interesting passage is,
As the Government of the United States of America is not, in any sense, founded on the Christian religion,—as it has in itself no character of enmity against the laws, religion, or tranquility, of Mussulmen,—and as the said States never entered into any war or act of hostility against any Mahometan nation, it is declared by the parties that no pretext arising from religious opinions shall ever produce an interruption of the harmony existing between the two countries.