It wasn’t until around the 1840s that we started seeing firearms in .22 caliber. So the first airgun was no doubt a big bore and also a PCP.
.22 BB Cap Designed 1845
Airguns and rifling
The first modern air rifle was made by the BSA company in 1905 — right at the time all these important rifling lessons were coming together. This was decades before Marlin’s Microgroove rifling had been thought of and decades before polygonal rifling was tried. But BSA was aware of one thing from the start — light lead pellets are difficult to launch with just a small puff of air. Anything that inhibits their movement — like deep rifling or wide lands, is a problem.
so i would say rimfire .22 before airgun.22