Surface height or width < 0

Hello,
looking libSDL source code - SDL_CreateRGBSurface() - it seems possible to
create a surface with a negative height or width. Am I wrong?
Is this a bug or it has a reason to be?