It’s the public/private dichotomy you see everywhere.
Publicly pols say one thing or stand for one thing and privately they hold different views.