It's a surprising pattern... Most U.S. state capitals are not their largest cities, and most large cities are not capitals. Phoenix is the only city in the top 10 that is also a capital.
There is already widespread belief, in the rest of the state, that the Philadelphia area (as the largest concentration of population and wealth) has an unfairly outsized influence over Harrisburg.
The result of moving the capital to Philadelphia would surely strain the legitimacy of the state government even more.
Moving it to Pittsburgh would accomplish the same exact thing except it would be arguably even less just.
There are any number of reasons why keeping it in Harrisburg is imperfect but it's probably the least bad solution.