reasons not to would include the inverter operating at a higher ambient air temperature when at peak output, and therefore reducing the lifespan of the inverter (which ultimately is dictated by the lifespan of the capacitors), dustier environment, and the inverter being less accessible to check for repairs.
We'll install in lofts when there's no other option, but our preference is for the inverter in a garage or other accessible cooler space within the house if there is the option for those reasons.