A few of the common ways governments are hacked into include:
Hacking private sector partners to gain access to public sector data
Phishing scams sent to government workers
Breaking into antiquated physical servers with easy points of entry for a sophisticated hacker