It could be three things:
1) It could be defective. However this is probably the least likely possibility, given that it is new.
2) That UPS is a model in which the inverter is active, all the time.
This means that it is an "On-line" UPS, rather than "standby" UPS. A "standby" UPS only turns on the inverter and switches to battery power when the AC line power goes out of tolerance. Until then, you computer is running on AC line power. An "on-line" UPS, conditions and filters the power, so that your computer is always hooked up to the output of the inverter, and never directly to the AC line power. The battery is charged, while the AC line power is within tolerance, otherwise it drains while powering the inverter circuit.
3) The UPS behaves differently when it is doing the initial battery charge, causing the hum. Some "smart" or "microprocessor-controlled" UPSes, actually monitor the UPS during the initial charge cycle, to determine a "profile" of the battery, that is then used to determine the remaining power capacity when running off of the battery.
Personally, I suspect that the "hum" is due to reason 2, above, and that you are not likely to get rid of it.
My suggestion is to put the UPS somewhere out of the way, perhaps around a corner or behind furniture, so that the hum will be less noticable. The alternative, would be to get a "stand-by" UPS instead of an "on-line" model, which will only "hum" when the power actually goes out. (Usually they make a lot more noise too, mine makes a rather loud and annoying alarm "BEEP" every 10 seconds until power is restored or the battery charge runs out.)
If you check your UPS specs, and you in fact do have a "stand-by" model, not an "on-line" model, then I would have to say that the reason is either 1 or 3, with 3 being the most likely.
In either case, you can let it charge fully, and then see if the "hum" goes away or not. If not, then I hope that I've given you a fairly complete picture of your alternatives.
(Another possibility, is that you are putting too much load on the UPS, and that is causing it to emit more noise than it normally should, because the inverter is being loaded-down outside of it's normal operating specs. However this is fairly unlikely, because most have some sort of overload protection, and will shut themselves down if this is the case. This is a pretty unlikely possibility, and is probably in the same range of probability as reason 1, above.)