The main reason for spoofing MACs is to disguise the identity of the network interface. To the extent that tracking based on the MAC address is to be prevented, spoofing can be used to display a different MAC address each time the user logs on to the network. 

macOS stores all Wi-Fi information (e.g. SSID, last connection) up to version 10.15 in the file com.apple.airport.preferences.plist. The complete path is: /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist. Since macOS 11, this information can be found under /Library/Preferences/com.apple.wifi.known-networks.plist.

If you do not want to create a fingerprint of the macOS device. It is recommended to spoof the physical MAC before connecting to an unsecure and untrusted network. The following command enables this:

sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's%\(..\)%\1:%g; s%.$%%')