Some claimed it is not comfortable to acquire a prohibition only when it is known, like chametz. But in my humble opinion, in the subconscious of every Jew it is placed that he wants to do the will of Hashem, even if he does not know of the prohibition. And so the Tosafot wrote of hekdesh coins in Bava Metzia.