Figma Moving to Frames makes life for me 10x harder as developer

Why did Figma move towards Frames from rectangles.

I got designs from my designer which have all frames and now all frame paddings and margins are added in the css.

It was 100x easier for me to get css of shapes directly and putting it in my React Code.

I feel I might be doing something wrong here or dont know about something

frames = divs
rectangles = divs

So what’s the difference for you?

frames is adding extra margins and padding to the css that I get.

With rectangles and shapes, did not have this.