Anonymous sources are not anonymous to the reporter, they are people known to the reporter who agrees to conceal their identity to shield them from the consequences of acting as their source
Here to point out that Trump has pretended to be a source for stories about himself. There's speculation he called news shows anonymously pretending to be someone else so he could brag about himself.