You might be right that SWEs have the biggest egos compared to other engineering disciplines. When I've worked with mechanical and electrical engineers, that was the case.
But where I work now, the biggest egos are easily the people around the SWEs - especially architects and product owners. Is that not the case where you work?