Only in modern times the meaning of religion became equivalent to faith. The Hebrew word for religion דת Dat originally meant “law”, i.e. the set of laws and commitments that someone takes upon himself.
Fun fact: the word originated from Persian, same as the word Data.