Most iPhones are not purchased by parents for kids. You’re fixated on this but it’s a footnote for why people buy iPhones.
1: https://appleinsider.com/articles/23/04/04/iphone-is-still-t...
Where is the lock in?
Is it perhaps because it's easier to message them, do photo sharing/albums, see their location, have airtags work on both? At least for a sizable group my extended family included it's a lock-in for iPhones (or a very strong social disincentive to switch).