On-chain fees are a function of transaction size and congestion. Lightning fees are a combination of baseline and percentage of value.
So for small amounts, Lightning is cheaper. As the amount gets larger, thereโs an inflection point at which on-chain is cheaper. Your transaction crossed the line.