Apple ID and password are required for factory resetting iPad under the 3 cases here:
You want to erase iPad in the lock screen by using the Erase iPad option.
You want to erase iPad via iCloud Find My or Find My app.
You need to bypass Activation Lock after factory resetting your iPad.
In...