That’s because the layers don’t match:
You can fix it by changing “Group 2” to “Group 1”, note the use of the different classes, there’s elements, groups, auto layouts, and frames, each with it’s own specific use and purpose.
For example, I want to align elements in a certain way, I’ll use auto layout because it simplifies the process, makes it automatically so you don’t have to worry about misalignments.
My personal preference when designing UI (both components and whole screens) is to use Auto Layout first thing first, if you intend on developing your design it will make it even easier.
Groups are literal, a group, but it shouldn’t be used for everything, only to “combine” elements without alignment or the effects of parent alignments, and hold the layers together, but it doesn’t mean it’s a good use for everything, I suggest master auto layout.
So, for a sum up, your problem was a mismatch of layers names, the way smart animate works is that it identifies layers with matching names and that’s how it knows what is what.
In “Frame 1” your group was called “Group 1”, but in “Frame 2” your group is called “Group 2” which means Figma didn’t recognize it’s the same layer. Don’t underestimate any setting you see, these numbers and icons have purposes, and naming layers is super important.
Have a good one bro I hope you understand everything now!
Best of Luck!