Mirroring can be used for troubleshooting or data collection. Typically it is used for troubleshooting to investigate certain things not working correctly. You enable mirror on the port experiencing issues and mirror to another port with Wireshark active.