To qualify for medicare you have to be aged 65 or older.
To qualify for medicaid you can be 18 or older unless a parent signs the child up for medicaid.
To qualify for medicaid under age 18 a parent has to sign the child up.
But for medicare you have to be 65 or above to qualify.