The prefix "in-" in "indecent" means "not" or "the opposite of". So, "indecent" literally means "not decent".