SD cards can also have a switch to make them read only.
It is the responsibility of the host to protect the card. The position [i.e., setting] of the write protect switch is unknown to the internal circuitry of the card
https://en.wikipedia.org/wiki/SD_card#Write-protect_notch