Tldr is that the official term "city" in the UK is pretty much entirely ceremonial.
All it means is that the ruling monarch liked your town enough that they would give it city status by royal decree. That's why "city status" seems so arbitrary because it's entirely is.