> (As trivia, I also notice that iPhone5s on ebay that still have iOS 6 sell for a slightly higher premium.)
This is probably because it has a better jailbreak scene around it than newer versions of iOS. Also, just as an FYI, the latest version of iOS is 11, and they're not numbered using roman numerals.
The latest version of iOS for the iPhone 5 is certainly 10. 11 dropped support for 32-bit phones, and the iPhone 5, along with the 5c, were the last 32-bit iPhones.