Why do Formula 1 racing car drivers get weighed after each race?

To assure no one added special equipment during a pit stop. There are regulations in Formula One racing