Space between a number and unit of measure??

There are journals that require the number and
unit of measure to have no space, e.g. 10nm not 10 nm, but wikipedia and other writing resources require a space.

I wonder why they do this?