Technically, mutants are a subtype of metahuman. Their ablities however come from a mutation in the genome, usually referred to as the X-gene. This usually happens at conceptions, so they are born with these abilities, although they don't normally manifest until puberty.
Most other metahumans are created by outside events. Lightning storms, radioactive spiders, science.