Quoted By:
it's good because it forces the player to choose between having a full team/movesets or accessing new areas of the map with more items and possibly trainers. it also encourages exploration of previous routes to find anything you might have missed.
when it is required, it's usually as a natural roadblock which makes the player complete a certain number of gyms before getting through. how good of an idea that is is up for debate, but it's better than the artificial bullshit that gen 5 pulls. and I say this with gen 5 as my favorite generation.