The purpose of this method is to separate proteins according to their size, and no other physical feature. In order to understand how this works, we have to understand the two halves of the name: SDS and PAGE
This website gives some concise explanations.