Your queen threatens mate near the king and attacks the loose knight. The bishop exchange pulled that knight away from the center.