If it’s not against the law, why leak it? Why not just give an interview to the Times?
It's all part of the deep state Kabuki of political intrigue. There are two types of leaks: sanctioned ones by people who are authorized to leak, and unsanctioned ones. The people who know, they eventually learn who the leakers are. But by revealing their names, they themselves could be leaking classified information or at a minimum become targets for retribution. The leakers don't go on the record because they wouldn't get reelected, or they would hurt the election chances of their party (or the party they actually support in the case of turncoat republicans) if they were brazenly leaking classified information for political purposes in an attributable manner.