My read on the ending: They're trying to suggest that the Joker's madness is catching — that he activated a part in these people that had been waiting to wake up. He actually says as much in his speech into the camera in the previous episode. He wanted Gotham to radicalise into insanity.