Rouge often uses her charm to get what she wants, and flirting with Sonic fits that personality. It may also be a way to tease Amy, who has strong feelings for Sonic.