Latin jejunus concerned hunger or meagreness. English jejune extended that lack to intellectual and emotional substance. Its later childish sense may have been encouraged by confusion with French jeune, young.
French jeune is a possible influence on one meaning, not the source of the English word. The Latin and earlier English food-related stages are not all shown.
Source
Merriam-Webster: jejuneThe edited discussion explicitly follows Latin hunger/meagreness into intellectual substance and qualifies French jeune as a possible influence on the childish sense.