You’re talking about a very very small subset of developers. Those that (likely) went to a top US college, are in SF and got snapped up by a FAANG.
The other 95% of developers globally never get that experience. Don’t be upset with what you have just because of the skewed crowd on here.
If you’d like to try for that then do some leetcode practice and apply, but I wouldn’t be setting expectations high as it’s very difficult to succeed. Might be worth putting up a portfolio on GitHub or somewhere too.