When google made Chrome, they already totally dominated the search market. Google search was launched 1997, Chrome was launched 2008.
Microsoft used the exact same tactic repeatedly. It's one of the cornerstones of any dominant corporation, to build and leverage moats to keep competition at bay.
Why do you think Google bought Android? Google panicked after seeing a private demo of iOS. Remember, back then Google execs were sitting on the Apple board.