Why was the London eye built in London?

There seems to be a misconception in your question. The London Eye was not specifically built in London because of any certain reason or purpose other than being a popular tourist attraction. It was constructed as a part of the Millennium Complex to commemorate the new millennium (the beginning of the 21st century) and to contribute to the urban regeneration of the South Bank area in London.
Copyright Wanderlust World © https://www.ynyoo.com