The point is to have the block be launched by the spring and not stay attached.  The kinetic energy it receives from the spring is seen from the motion of the block after it is released and then slowed by friction.  The main action takes place after being launched by the spring.