How does Pivoting comes into pictures?

Hi there, so far I have learned the following commands, in what kind of scenarios can this be used? nano /etc/proxychains.conf #add the following lines socks4 127.0.0.1 9050 Use the following commands use auxiliary/server/socks4a set SRVPORT 9050 exploit Run nmap proxy to test proxychains nmap -sS 192.168.0.51