Conceptual question: Passive vs Active Information Gathering (web apps vs networks)

Hi,

Based on what I’ve seen in the course, I got the impression that:

Passive information gathering is used for web applications or a domain that is in a search engine. Examples are whois, netcraft, dnslookup, dig, wafwoof, etc.

but then when whe talk about active information gathering is for more for getting information of hosts in a network rather than web applications. So i do not understand the connection between both tools because it seems to me that they point in different directions. examples of tools is nmap where we discover hosts in a network, look for open ports in a host, we try to detect the operative system.

I want to know if they are connected in some way. Thanks