It’s formulaic & done purely for commercial reasons. Obviously they need to leave you with a reason to want to come back, but good characters & setting & an unfinished sub plot or hint of some new issue/crisis developing will be enough if it’s done well.