This answer is based on my experience as an apprentice.
Fresh out of school with A-Levels I got a position as an apprentice in a multinational consulting company, we went through an initial training period most of which did not expand significantly upon my already existing self-taught knowledge. But what this did provide was access to mentors whose role it was to provide guidance, answer technical and conceptual questions, and whose influence provided major benefit to my growth.
Upon being launched into the main company I was put in the 'innovation' team, there were lots of exciting things being developed which we could only have cursory participation in due to our needing to progress through the 'training program' & apprenticeship coursework.
Whilst there I entered into discussions with the head of a department about onboarding, and was assigned by them the task of developing an onboarding app prototype. I found a few apprentices to run this with on the side and everything was going well.
After a period of developing this during my evenings I realised that I was likely missing certain knowledge which would improve the development process, technical information regarding technologies of the time such as Angular, which the innovation team were making use of on a daily basis. I approached the lead engineer on the team for advice, was told he would not put aside any time for me as I had yet to finish the coursework (which I had no interest in, I would rather be coding), and was subsequently interviewed by him about how I was assigned this project rather than the team as a whole, he did not understand why a head of a department would choose me to run this and wanted to claim ownership of it.
This significantly demoralised me, I continued without guidance on the development but did not know how to process this situation or to seek help from elsewhere. Around this time I was going through a breakup with a longtime partner, this combined with being away from home and having little emotional support meant I started arriving late to work (despite always leaving last). A week or two of this, a missed medical appointment (I started using my existing condition as a crutch to explain away my late arrivals), I was pulled into a HR meeting by myself and given the option of being fired on the spot or signing my resignation letter, I wrote my resignation email in the interview room as I felt I had no other choice and was gone before lunch.
My manager, the team, the head of the other department, no-one know this HR action was being taken against me, the HR figure that did this to me was let go shortly afterwards.
In short, if possible try to protect him, bring his situation to the awareness of the higher ups and shine a light on his potential within the organisation in a role outside of the apprenticeship itself, explain to him the bureaucracy and how to exist within it, whilst guiding him towards mentors and being mindful of his situation, he is likely full of optimism and courage, but there is a fine line being tread between thrilling challenge and being left to wither within a corporation without support or nurturing of his talents.