No, first you are mistaking a bet on a single company for a bet on an industry. The obvious counterexamples being that there are no shortage of wannabe AI companies valued orders of magnitude lower than Apple, that doesn't mean wall street thinks devices beat ai as an industry gold mine.
Google is valued highly today because they print money today. They print money because of search and advertising. They are really good at this and that's why their market cap exceed's Apple's today.
These prices are not remotely rational. There's no serious investor that thinks Apple is going to shut the lights off inside 7 years which is what the current 'market cap' would tell you.