A lot of tech interviews screen for the ability to quickly solve whiteboard problems.
But the problems you solve on the job rarely if ever resemble those problems.
Perhaps we have a lot of impostor syndrome because we have a lot of people who aren't the right fit for their job. (This has been my personal experience.)