5G is the current fashionable marketing name used for recent cellular connections; harder, better, faster, stronger, or something else similarly Daft.
5G cellular has different channel ranges, and there is overlap, and a particular cellular caller may or may nor permit connections on the particular set of carrier-compatible channels available on your device.
Wi-Fi is different from cellular. Most any active Wi-Fi is running Wi-Fi 4, Wi-Fi 5, or the current Wi-Fi 6. There are somewhat different ranges of Wi-Fi channels available depending on your location, and Wi-Fi geolocation will cause the Wi-Fi router and the iPad to select the correct channel range for your particular Wi-Fi location. iPad Pro 2021 is Wi-Fi 6, which is backwards-compatible with any Wi-Fi you’re likely to encounter.