People forget that many huge shows, e.g. Breaking Bad, Battlestar Galactica, only became hugely popular several years into their run. The Wire is even more extreme: it only really became huge after the last episode was broadcast. But in each of those cases, someone made the call that a high-quality show was worth running, either because they hoped it would find a wider audience or because they believed it enhanced their brand.