Why are male piglets castrated?

Boar piglets are routinely castrated for years with the idea thus preventing a possible abnormal smell of the meat (boar taint).