Where else would ./install-3rdparty-software.sh write to? Should it spray files all over /usr?
But sure, absolutely, an installer should prompt the user for an install location, and I think a default under /opt is probably among the best defaults possible, if we consider installing outside $HOME to be reasonable.