What exactly are a mimic‘s intentions?

I mean, yes, they are obviously mimicking sounds and do what they do. But do they have intentions whilst doing that? Do they just want attention? Do they want to spook people? Or something else? I find mimics super interesting but confusing at the same time. Tbh, if I was a spirit, I‘d find it super funny to be a mimic lmao