To think it is discriminatory that they hired me for this reason only?

My husband is in a highly paid job where he used to be able to work from home if he wanted, and this is when I had my own job interview so I obviously told them any situation that occur he can stay home and work from home but one thing for sure was that they focussed purely on my childcare arrangements, in which I have nobody but his school and childminder. However when he is poorly, it is me that has to get him and take time off work as my husband works far and his job / project is more important better paid than where I am and it is further away.

Basically if he lost his job, we’d be worse off than if I lost mine. I love working and it keeps my mental health in check. Without employment, I get seriously depressed! I’ve always been one that works. Can not afford to not work either to be honest!

Anyway I asked to come in early and leave early for a week as the childminder is off so she cannot pick him up from school, then they proceeded to say you said your husband worked from home, that’s what you told us in your interview so what’s changed? Why can’t he stay home and look after him? I said yeah he did but circumstances have now changed! I didn’t predict that it would change.

Then they said but that’s what you told us in your interview.. she was probably trying NOT to say “that’s why we hired you” because I would’ve lost the plot. Now I think if I didn’t say my husband worked from home there’s no way they would’ve given me the job. Is this not bang out of order? I am fucking sick of it. I work hard. I am thorough and I do my damn best. I feel like I’m being punished because I’ve got a child! I’m more reliable than those who have no children at all wheee I work!