Ketchup is one of those products that are mostly sugar for no reason. Same with those processed juices. Ironically, tomato juice is usually not that sugary and I love it a lot.
A lot of tomato based sauces are just very sweet. If you're worried about the sugar intake eat less of it.