Does the betta breath through its gills?

Yes, but they breathe air too, thru the labyrinth organ. In fact if you don't let them get to the top of the tank they can suffocate.