Preparing Nd3 and f2-f4 in order to attack Black's centre and, indirectly, his king.
The knight retreats so that the bishop on b2 enhances a future e4-e5 or f4-f5 advance.
Black finally accepts the queen exchange, aware that he will soon be able to create new threats.