Just because you are missing a break or return statement there. A switch case constructs keeps checking the condition till it finds a return or break. This is some times useful when you want to execute some thing for multiple conditions for e.g. for 1st 3 months some one gets salary of 200, for next 3 months 300 like that.
another situation when you have different salary for different months