Let’s Hear It for Leviticus!

Why would God punish people for sins they didn’t know they were committing?