It is a money saving excercise that they are legally allowed to do, but it will reduce the number of people (especially older people with 'old bladders') visiting the town centre.
British Toilet Association: News from the BTA
extract -
The previous government considered, but failed to implement, a proposal that provision of public toilets should be a statutory duty of local councils.