That’s how you charge the Apple Mouse. They intentionally designed it so you couldn’t use it while it was charging, because Steve Jobs demanded a cord-free desk. He hated the cords leading to his mouse and keyboard, and didn’t think devices should stay plugged in all the time. So he forced the engineers to design a mouse that couldn’t stay plugged in.
It really is the epitome of Apple’s “I know better than you” design philosophy