Isn't it based on a misunderstanding of [William Laird Manson, The Highland Bagpipe, 1901, p.165] the story about the girl who learnt some of the secret tricks of the Mac Crimmon pipers, and told them to her sweetheart?
The point being that in that story at least, they cut her fingers off for giving away their secrets, not for transgressing gender norms.