Well, it starts off with Abraham in Genesis 14 giving 10% of his war booty to Melchizidek and continues through the Mosaic law. Paul and the early church fathers just wanted "cheerful giving" and didn't set a percentage on it. Cyprian (early 3rd century) bitched that people weren't even meeting the old standard of 10%, never mind exceeding it, and the (fairly local) councils of Tours (567) and Mâcon (585) made 10% mandatory and backed by threats. Charlemagne made it law across his entire realm, and from there it spread across Europe during the middle ages.
The current form--the kirchensteuer--only dates back to the early 19th century, though the concept is the same: maintenance of the church is a public good, and so the public should contribute to it.
That said- it's not 10% of their income, it's something like 8-9% of their *tax bill*.