Legality and Enforcement of Covid Rules and Regulations (in Taiwan)

Why? Per your other comments, on what basis does the government of TW have the right to force people who aren’t known to have the virus to quarantine?