Noted Communist Thomas Jefferson proposed it rather before the Communist Manifesto was written (not that he came up with the idea, of course), and some US states and various other places started introducing it from the early 19th century on.
Just because Marx was in favour of something doesn’t necessarily make it inherently socialist.