Because it ran iOS? It just didn't have cell radios. Had WiFi, though, so I'm confused by "WiFi-only iPhone experience" because that's exactly what an iPod Touch was.
Pretty soon though, they figured it out: iPod Touch devices were purchased for teens and children, and they were mostly used to play games on, hence the "Funnest iPod Ever": https://daringfireball.net/2008/09/lets_rock_special_event
Nowadays that space is filled mostly by iPad (especially mini, which is barely bigger than a modern "pro max" phone), and to a lesser degree by hand-me-down iPhones that are off-contract or can be inexpensively connected to family plans as tertiary devices.
I wouldn't agree on the mini part -- the Mini, like the Air, is extremely expensive to be handed to kids. The low-end "plain iPad" is being sold for $400 now, whereas the cheapest new Mini is $600.
> and to a lesser degree by hand-me-down iPhones
This though, very true. It's a good use imho because you take such a hit on trading in a phone that it's close to "may as well keep and repurpose" territory, unless you're willing to sell it directly and deal with the likelihood of getting completely scammed.
Personally, to refute my own assertion, for very specific reasons -- gaming performance and longevity was important to me -- I chose M1 Airs for the kids. But they also have extremely-limited-purpose moderate-to-very old iPhones that are basically restricted to listening to music or audiobooks to fall asleep to, and sometimes they take pictures with them. We don't have SIMs in them because we don't want them to be taken outside the home or used for anything else.
I could honestly be misremembering because it was over ten years ago. Maybe those features were present and I don't recall them. I just remember experiencing the iPod Touch 4G as almost an iPhone. I would later get a proper iPhone 4S which was dream hardware at the time.
For fun: I remember jailbreaking the iPod Touch 4 and gaining access to Cydia and tuning Springboard, the main homescreen UI. I made it super fast and snappy and installed various apps and games. I also had an "incase" case that was matte black and snap fit which made the device feel very premium even back in 2010-11.