Exams happen all the time in real life. Or rather, situations where you can't just look up fundamental knowledge. Job interviews, presentations, even mundane work tasks - all these require you to know the basics quickly "The basics" are relative, of course, but I often point out to my students: "you don't care if your doctor needs to look up the specific interactions of your various meds. You do care if you see them googling 'what is an appendix'." Proctored, in-person exams are the only reliable mechanism we have for ascertaining if a specific individual has mastered key fundamentals and can answer relevant questions about them in a relatively timely fashion. Everything else is details and thresholds - how fast do you need to be able to recall, how deep, what details are fundamental. From there, I think it's fine to hate poorly made exams, and it's a given that many folks making exams have no idea what they're doing (or don't have the resources to do it right). But the premise of an exam is not completely divorced from reality.
I think many of us would agree that job interviews (in tech at least) are horribly broken, because they don't do a good job of testing candidates' ability to do the actual work they'll be doing day-to-day. So saying exams are like job interviews is not a positive for exams. And, for most people, the ideal is to find a job and stick with it for years, so it's not like job interviews are common, everyday occurrences.
For presentations, usually you spend a lot of time preparing for them (similar to exams), building a slide deck or pages of notes that you refer to while giving the talk (not similar to exams). Sure, you do have to be able to think on your feet, but I don't think the comparison to a sit-down exam is all that apt.
For mundane work tasks, you have the internet and whatever reference materials you want (including LLMs, these days); this sort of thing is so different from a sit-down exam that it's almost comical that you'd try to equate the two.
I'm not saying I know of a better way to evaluate learning than proctored, in-person exams, but suggesting that sort of situation is particularly relevant to real life... no, no way.