There is no technical reason why it needs to be in the window system (well in X the clipboard goes away if you if the client that set it exits, but that is unwanted anyway) but from a user perspective it is very close to keyboard input so it makes sense to have it be handled by the same system.
Wouldn't it be easier to make it a separate service instead of having X or Wayland deal with it?