Originally a nominalization of the dialectal adjective främmad in its neuter form, cf. främmande.
främmat (indeclinable)