If you know how iPhones work then online research is enough, but if you haven’t played with one it makes sense to use it at the store as research, or even if you’re just curious.
Same for Android, I wouldn’t buy one without testing before, for example.
Also: The Microsoft and Chromebook displays at electronics chain-stores have seriously stepped up their game in the last 10 years or so. Before that it was a shitshow, with keyboards missing keys and the OS crashing on demo devices that would be otherwise perfectly usable machines.