If you're asking me and not starting a discussion.. Yes, without it it's an array of arrays -- thus uniq is semi-ineffective.  Check the test case without the flatten and you'll see the dependency twice.