Apple keeps its iOS and iPadOS device USB connections fairly restricted. For example, while basic connections and file transfers with MFi-compatible dongles are a given, you can’t just attach any USB-based device if your choosing and start tinkering with it like you can with a full blown computer.
Hobbyist uses jailbroken iPad Pro and software hacks to make device communicate with USB serial devices