First of all, this is not compulsory to disable antivirus for the installation. The recommendation is "just in case". Antivirus can block access to some files and it may affect the installation process. Antivirus app itself might be using some libraries that are going to be updated during the installation process, so you don't want anything "holding" them either.
The funny thing is - if you install something NEW to your computer/device you really want your AV to be ON to check what is being installed (for security reasons).