Languages that allow inheritance, don't prevent you from using composition...
And no, it's not just convenient notation. As someone that works with LLVM and compilers, I can assure you, that doing it without inheritance would result in an unmaintainable mess. If you want proof, there's the GCC codebase 🤣