That is how panorama's work.
The perspective they have to squeeze together makes straight lines curve.
Some programs allow you to change that, but that does not always give a nice output either.
Hi, thanks for the inquiry. What you've captured in Panorama mode is perfectly normal and you have no need to worry. Anyway, nice shot. Thanks for sharing.