Intenet connection is always needed for erasing iOS devices because of the following reasons:
iOS firmware image must be downloaded if it doesn't exist already
iOS firmware image must be signed online by Apple