I saw a good documentary on gulls a couple of years ago and apparently it’s a combination of factors - their natural food sources on the coast have declined, the waste humans produce has become more plentiful and the gulls are in less danger from predators in towns and cities.
There was a graphic in the programme demonstrating the way in which gull populations have moved inland and increased during the last fifty years. It was quite dramatic.