It’s not. Federal government has very broad powers when it comes to public health.
Though we’ve never had a full scale shelter in place order, there is plenty of historical precedence to follow for mandatory quarantine.
Trump has addressed this and said its not needed. Reports have come out saying he thinks it will impact the economy too much and that he wants these orders to begin receding within 15 days.