The claim was around failure to make reasonable adjustments, and unfavourable treatment due to disability.
You can have a valid claim where a flexible working request is unreasonably denied, but this case was about much more than that.
Note also that the employer was the DWP. Their record of disability discrimination is abysmal, which is ironic given that one of their duties is supporting disabled people into the workplace.