Because the programmer works with other programmers, some of whom have their editors set to expand tabs to 8 spaces, others of whom have their editors set to expand tabs to 4 spaces, and still others of whom have their editors set to expand tabs to 2 spaces. It’s easier to get everyone to use only spaces than it is to get everyone to agree on how wide a tab stop should be.