Not unethical at all. They were paying X amount of money to get Y work done. You were providing that just fine (I’d say you were providing them even better value because you eliminated human error).
It’s not your fault if they would rather hire a human to do some automatable task.
It’s not your fault if they would rather hire a human to do some automatable task.