It's independent from the routing rules in RouterOS. Here is an example in 7.21:
RouterOS has no routing rules defined, but the container has, and the rules affect only the container.
But in 7.22 the pre-populated rules now have the unfortunate 1, 2, 3 priorities, and this is probably a bug, which gives problem to containers that want to insert custom rules between them.
For example, normally they only need to pick a priority in the thousands for the rules, and on both the example of your Linux machine, as well as containers under <= 7.21, the rule will be inserted between lookup local and lookup main as expected.
In 7.22 those rules will be placed at the end and will be ineffective. As an example from another user:
