How did 子, meaning "child", become a noun suffix?
It's called a diminutive suffix, about which you can read these entries:

https://en.m.wikipedia.org/wiki/Diminutive

https://en.m.wikipedia.org/wiki/List_of_diminutives_by_language