The radiation field emitted by the matter is Planckian.
But the local radiation field is determined non-locally and is generally not Planckian.
LTE usually holds at sufficiently high densities.
Assuming LTE is a vast simplification in astrophysical radiative transfer.
Sometimes it is valid or approximately valid---but often it is not.