Is it necessary to ground a metal Knock Out Box used solely for POE Ethernet wire?
No, they do not need to be grounded.

If the box contained household voltages, then yes, it would need to be grounded.