Maybe you're visiting family with your MacBook and set up a temporary workstation using whatever you can find around the house. Maybe you bought a fancy mechanical keyboard for your Mac not realizing ...
You can share a keyboard and mouse across multiple Windows and macOS computers, if you know the right tools to use.