The changeling attempted to imitate a Yoda-like creature, but suffered some sort of brain damage, changing the appearance of their new form into an infant. In Baby Yoda's case, this infant is 50 years old, but is an infant all the same.