You need to know what is react and how it works.
When someone looks for 100xDev course on google, and if the html file after npm run build has these word i.e. 100xDev, course, in the start of the html file, then it would point the user to this website and rank it on the top.
Now the problem is this → the .html file after npm run build doesn’t have the contents of the website and the crawler doesn’t even go through the entire website html, so even if the common words that the user is searching are present on your website, it still doesn’t make sense.
For example, look at this screenshot.
This is the website www.aryancodes.dev →

and this is the .html file for it →

If you see and compare the elements present in the website and in the index.html, there is a huge gap. All the content is in the root div and in the index-365u-rs.js. NextJS fixed this!