What did the monroe doctrine have to do with James Monroe?

It warned European nations not to interfere in the Western Hemisphere .

Monroe was the president when the doctrine was declared to the world.