A TV show's pilot episode is a stand-alone episode intended to pitch the show to a network or distributor. A pilot episode acts as a testing ground to ascertain whether a series would be successful.
Some TV episodes are just plain bad. It’s not because people expect perfection. It’s because certain episodes get everything wrong. Bad plots. Weird character choices.