Why long flashlights on 19x/19/45?

I see a lot of flashlights as big or bigger than my TLR-1 on Glocks with shorter barrels than my G17. I don't get it because it would make it harder to conceal carry and I don't understand the advantage of a shorter barrel over a 17/47/34 if you aren't conceal carrying.