The white Molex™-connector is part of the fan housing and is designed to be connected to the fan provided with it.
Likewise, the 2-blade NEMA-style connector is also part of the fan housing and is designed to be connected to the fan provided with this housing.
You would generally replace the entire fan, housing and all, not just the blower motor. If you do want to replace just the blower motor, you'll need to find one that matches the plate requirements of the one you're pulling out, and you'd probably need to snip the white connector off the end of the old one and solder & insulate the wires from the new motor to the old connector.
To be honest, these both look like pictures of already installed, rather old fans, and neither looks to be an in-store display. Also, I'm quite surprised that the newer fan has the 2-blade, NEMA style plug, as that strikes me as being "older" and more likely to come loose under the vibration of the fan motor. Most newer electronics/electrical devices are coming with the white nylon Molex™-style connectors to my knowledge.