(a) So that urea will leave the blood.
Substances cross the membrane by diffusion, which moves them from where they are more concentrated to where they are less concentrated. With no urea at all in the dialysate there is the steepest possible concentration gradient from blood to dialysate, so urea diffuses out as fast as it can and is carried away. If the dialysate already contained urea the gradient would be shallower and less would be removed.
(b) So that they will not leave the blood.
Glucose and the essential salts are useful and must be kept. Matching their concentrations on the two sides of the membrane means there is no concentration gradient for them, so there is no net diffusion either way and the blood retains them. The machine is therefore selective not because the membrane can tell the substances apart, but because of how the dialysate is made up.
(c) The missing process is selective reabsorption in the renal tubule.
A nephron works in two stages: it first filters almost everything small out of the blood, and then actively takes back what the body needs — all of the glucose, the amino acids, and as much water and salt as the body requires at that moment. It adjusts this from minute to minute, so the composition of the blood is held steady.
A dialysis machine has no active step at all. It can only let substances drift down concentration gradients, which is why the dialysate has to be mixed so carefully in advance — the machine cannot decide anything for itself. More importantly it only works while the patient is connected, whereas kidneys clean the blood continuously, day and night. Between sessions urea and water build up steadily with nothing to remove them, so the patient must return before the build-up becomes dangerous.