Raleigh's total market is small compared to NYC's, of course (~2 million in 2013). Even then I can't believe a high fraction of work in the Research Triangle area is tech related. Aside from the 3 universities, it just doesn't have many significant tech employers these days. It's been decades since anyone mentioned tech business in RTP in the same breath as other hubs in the vicinity like DC, Charlotte, Atlanta, or Houston.
Searching for largest employers in Durham and Wake county, you'll see that there's a lot of tech. IBM is third largest overall employer in Durham, SAS is fifth in Wake, Cisco is seventh, followed by plenty of others that aren't quite as big. (Red Hat headquarters are here but they don't even make the list I searched http://d4.nccommerce.com/QCEWLargestEmployers.aspx).
What the triangle doesn't have is "sexy" tech. There's a lot of medium or small satellite offices, companies like Fidelity, Lenovo or Credit Suisse hiring people, and so on. Far fewer consumer oriented startups.
They all employ thousands or close to it in RTP/Raleigh. These are just the ones I thought of off the top of my head, I am sure there are others.
IBM alone employs 10,000 people in RTP.
There is a large government contractor presence in the triangle (DC is what, a 30 minute flight?). Epic's main office, Nvidia and Kitware have offices.
Like the other person said, I think it's because of the fraction, which I think is perfectly valid. If it was just pure numbers, the list would be just the largest cities in the country. Going by fraction helps weed out the fact that while NYC might have a lot of tech jobs, it has a far greater number of finance jobs. Raleigh has a lot of tech jobs and not a lot else, so in terms of how focused on tech the city is, Raleigh wins.
In 2000 when the dot-com's went bust, things were not so bad for IT in New York because the other industries were still going along - media, advertising, fashion, and of course, finance. San Francisco has all its eggs in one basket.
Plus New York has Stack Overflow, Spotify, Computer Associates, IBM, Seamless, Rockstar Games, Kickstarter and companies like that as well.