Unfortunately, a lot of first-time entrepreneurs don't know these things and register wherever they live. And even if you register in another state, you still have to abide by NYS/NYC rules if you operate in those regions.
Similarly, there’s often little to no benefit to incorporate in Delaware for small businesses, but too many assume it’s a good idea. In fact, for most small businesses, you’re worse off.