It’s still mathematical in the sense that it involves balancing things out logically - in a more abstract sense, that’s basically all Mathematics is.
Plus algebra is basically replacing numbers with pictures, too.
Plus numbers aren’t real and are an arbitrarily-defined placeholder for rougher concepts, too.