Why can't I add an eSIM on my child's iPhone?
Screen Time is a common culprit. If Content & Privacy Restrictions are on, go to Settings → Screen Time → Content & Privacy Restrictions and check 'Cellular Data Changes'. When it's set to Don't Allow, cellular settings are locked and a new plan can't be added. Switch it to Allow with the Screen Time passcode, install the eSIM, then turn the restriction back on. Also make sure the phone is unlocked and supports eSIM.