The difference is that public streets are
public spaces. You necessarily have a limited expectation of privacy in public spaces. The government likewise already deploys cameras in public places to maintain a reasonable level of order on them.
If you want to put a camera in your personal toilet you absolutely can.