Hi Arturo:
For me, pretesting lets both the teacher and student know where they are able to perform at the beginning of a class. This may allow a teacher to make small adjustments in their curriculum in order place the empasis where it'll do the most good.
Also, a teacher can do a posttest to compare to what degree the student met the course objectives. And to a lesser degree, it may reveal something about the effectiveness of the teacher (compared to past classes).
Regards, Barry