In the case of Flask: It would be incredibly inconvenient to restart your development server and have it show up on a random port every single time.
The only time fixed port numbers are inconvenient is when they conflict, but otherwise they're much easier to work with.