When Prince William of Orange and his Dutch army invaded Britain in 1688, King James II fled. The British parliament declared James had abdicated and offered the vacant throne to William, along with a manuscript that would make him a king.
That document became the 1689 Bill of Rights and it is the reason independent senator Lidia Thorpe could make allegations of sexual assault against Liberal senator David Van in parliament without fear of legal repercussions.