Install wget using one of the defined below command:
sudo apt install wget
sudo yum wget
sudo pacman -S wget
Why you are compiling it?
If you need specific version you can compile it this way:
tar xvzf wget-1.8.2.tar.gz
You can choose which wget ...
This seems to be an issue with expired certificates and LibreSSl, according to https://curl.haxx.se/mail/lib-2020-06/0010.html. Possible workarounds are
Use curl -k at impacted web sites. This disables certificate checking though, so it has some risks
(on Catalina) Set CURL_SSL_BACKEND=secure-transport
(on all macOS versions) Run brew install curl and set ...