Since her previous attempt at getting Sonic's attention didn't seem to work out, she decided to shed the bikini and see how that goes; how can he possibly resist her fruity flirting now?
Though another reason is that, just like Sticks, she didn't want her bikini to get ruined by the increasingly messy popping of her bubbles.