Installing Mac OS X Mountain lion Apple iD Error
It means that the Apple ID that you signed in with has no record of purchasing Mountain Lion. If you purchased Mountain Lion, use the Apple ID that you used to purchase it.

Alternatively, install Mavericks as it's free.