Why was the TV show Quantum Leap discontinued after Season 5?

Because Universal had decided it had run long enough. The series finale was originally planned as an episode setting up a spin-off- but it was never picked up and that was where the series actually ended.