ZIP codes are a simple approximation, which does their job good enough in most cases.
The alternatives that the author suggests are much more complicated, both in terms of the implementation and in terms of convincing the user to give you their full address.