Aside from a child's inherited genetic predisposition to asthma, other factors which are thought to influence whether they develop it or not include the number of brothers or sisters they have, and to a certain extent their diet in the early years.
BBC: Childhood measles may protect from asthma