I think remaining a member was always something the uk wanted but it seemed to get caught up in the negotiations. The screw up here is not that this is some U-turn but that rejoining/not-leaving didn’t happen much earlier.
Its more complex than that. The issue is that we are outside of the customs union, so building stuff outside and re-importing it (as in multiple factories specialising all over continental europe) becomes expensive in paper work, even though there may not be specific import taxes. Paper work in shipping takes time, money and a bunch of people to do, it makes everything much more expensive.