Mediocre writers are usually the people who end up writers because they're not good at anything else.
Mediocre teachers are usually the people who end up teachers because they're not good at anything else.
Mediocre cooks are usually the people who end up cooks because they're not good at anything else.
Mediocre programmers usually end up programmers because hardly anyone else can program.