Concur that 5 innings isn't some kind of rule. But the examples you give are outliers to what is probably their actual intention.
Daniel Gossett is a 29-year old retread, and I have no idea what conditions led to him throwing 120 pitches that day but I wouldn't imagine he represents any kind of typical plan for development. Derek Rodriguez likewise is a 30-year old retread, but his 6 inning stint required only 62 pitches. Instances like Festa, well he was efficient that day too, and threw only 75 pitches to achieve that innings total. Jordan Carr likewise, with 79 pitches.
At the major league level they worry about 3rd time through the order and all that. But for development, they just want to see the young arms get a measured amount of work, likely in terms of pitch counts (maybe they even get down to requiring an exact mix of fastballs vs breaking stuff, or have other measures for "work" than raw number of pitches), so innings worked is only an indirect measure of anything.