Apple invests a lot into Safari today.
The reason you don't think so is because you are likely equating developer features with investment. But actually Apple just has different priorities which are security, privacy and battery life. They aren't trying to push more pro-advertising features like Google is or turn the browser into an operating system.
It is delusional to think that if Chrome becomes more popular that they are suddenly going to abandon their values.