Typically, in the context of a rules engine, rules are considered as data rather than code.
This is because the rules, which are essentially business requirements, are loaded into the engine at runtime and are interpreted by the engine to make decisions. You can modify these rules without having to change the underlying code of the engine itself.
This approach has a major advantage: it allows business analysts or other non-technical users to define or modify business rules without needing to understand programming languages, and without needing to modify the application's codebase. This means that an application using a rules engine can adapt to new business requirements more quickly and with less risk than an application where rules are hardcoded into the application's source code.
However, it's important to note that while the rules themselves are data, the rules engine that interprets and executes these rules is indeed a piece of software and is therefore considered code.