Higher tariffs won't do it alone. Time is needed, as well. The current tariffs are likely seen as temporary.
If you start a factory to produce on shore, you would have to recoup capital costs off the margin available due to undercutting offshore factories while tariffs are higher.
When the administration or whims change, the tariffs go away and your factory loses that margin and isn't as profitable.