They recast the actress because the character aged suddenly in a time skip between Infinity War and Endgame.
For the first two Ant-Man films, the young girl version of Cassie was played by the same actress.
Ideally they'd wanna Harry Potter the two children of Reed and Sue, cast them young and have them age in the movies just as the HP cast grew up on-screen.