TV shows and movies often don't film scenes in sequence for various reasons. It's usually down to practicality, as it's more cost-effective to shoot scenes that are in the same location at one time, rather than repeatedly returning to a location. Also, actor's schedules or weather conditions might dictate when certain scenes can be filmed. Plus, sometimes, scenes might get rewritten or added in later, meaning the shooting sequence would inevitably change. So, while it may seem more logical to shoot in order, in reality, it's more of a jigsaw puzzle.