@Heather because it ensures that it only ignores a build directory in the root of the repository.  That's the only place where the ```build``` directory would be, so it'd be better to not force Git to search for things that it won't find.