So you don't get shot down by your own air defense
It is Very Bad if an enemy can either spoof a valid "friend" IFF response or cause IFFs to respond and give up one's position. The latter was done with great effect in both WW2 and the Vietnam War.
Tricking an enemy plane to respond seems "fair", but would a plane disguising itself as friendly count as perfidy?
Because of this, extremely typical, when you see military plane, but have not got alarm about it's approach - just pilot forgot to turn on beacon.
FoF system is totally another measure, in real dogfight they do not consider it much, it is mostly like additional spare fuse, may save your life in some case. Rumors said, pilots of U-2 was pray, to avoid cases, where need to use these radio tricks.