My voice teacher has worked as a voice teacher for over 20 years. She is very strict on teaching the healthy singing technique and I have had great success with her and developed my (opera) voice to a level I could never have imagined when I started singing lessons.
I am a bass (the lowest male voice type) and at the moment can still easily sing a healthy tenor high C (C5) and usually a bit higher notes than that. Voice teacher has said I have very good muscles for singing those high notes: as a result I also have no problems with the high bass notes E4/F4/F#4. I started voice lessons around 2010 and at that time struggled with notes above middle C (C4), so I think this has been a crazy improvement.
But this is not for granted for every person. My voice teacher also has other students that struggle with the high notes even though they have taken singing lessons with her longer than me. One bass student struggles with the high bass D4. Baritones rarely have a very large tessitura: they seem to struggle with something starting from high Bb4.
If you cannot sing the high notes, it is perfectly normal. Singing is about the body and muscles and every person has different physique and biology. You could have such muscles that you never reach the very high notes, even though you have sung tens of years, but could still sing well with your "normal" tessitura (of your voice type).
I have also heard basses have larger vocal cords than other voice types (such as baritones) and that is why they might have similar high notes as tenors, but their comfortable voice range "sits" lower.
You could also have sung with the wrong technique your whole life before beginning with a good voice teacher, which could also mean that you have "stuck" your body with the wrong technique (= wrong muscles --> wrong muscle memory) and may not get out of that for several years, and e.g. struggle with the high notes.
I would not say "anyone can learn high notes". I would say "anyone can learn to sing in a healthy way and with their own voice", which also results in a possibility to sing very high notes in a healthy way.
Source: based on own (partly professional opera) experience and health, plus what my voice teacher has told. Please also remember that singing technique (e.g. singing high notes) is a complex labyrinth of learning things and there does not seem to be a consensus on which is the "right" singing technique and how does the singer's body/muscles work. There is a lot of quarrel and argument on the subject, everyone think their opinion is the right one. I base mine on the fact that over the years, my body (not only the vocal cords!) responds to my singing better and better, I feel less and less vocal fatigue on my vocal cords, I can more easily notice what I am doing wrong with my muscles (mainly facial muscles) when singing and my voice has grown a lot larger over the years. I think this tells that my voice teacher has taught me a healthy technique, and I myself have practiced the right things and corrected my mistakes very well, which still allows me to sing professionally if I want to pursue that career.