Union simple arrays in $group stage

What is the issue with using

How would you do that use case with

To me it looks like SQL UNION is not related at all to this kind of grouping.