Investors are rewarding the firms that power AI's infrastructure, not those just layering AI onto existing tools.