I will admit that there is some punk that is downright annoying...but only the real extreme, silly hardcore.
Otherwise, as much as I'm a guitar player who likes good lead lines, who doesn't mind jamming/noodling some days, and I can listen to a variety of lead guitar playing....I still can't listen to stuff like Vai does (not just him, there are many other), or that extreme shredding stuff for more than a couple of minutes....but there's a LOT of great punk I can listen to all day long.
Good punk has that energy, that primal drive that is very infectious and makes you want to tap your foot, and get moving.
Great shredding....is just a lot of over-the-top technical wanking, and only other shred wankers can listen to it all day long.
I can appreciate the skill set...but it's just not interesting to listen to for any amount of time....at least for me.
In a nutshell....for me it comes down to a melodic vibe, which there's all kinds of great guitar playing has....or stuff with more rhythmic vibe, which a lot of punk offers.
The shred stuff doesn't offer either....or at least not in the way that I like melody and rhythms.
Like with Beck.....there's times when I love to listen to him play, when he is doing more melodic/rhythmic stuff, and then when he starts to just go all "technique" and turns the guitar into more of a synth-like instruments....meh.....