'Observe' in this sense means follow, or do as is required by law. We observe rules, we observe laws. It can also mean 'respect' in this sense.
We don't use the word 'carry out' for religious duties, we say observe. 'Carry out' is for a job, a task, instructions in a work situation, for example.