No, it is not compulsory to take a bath in the 22-wells in Rameshwaram. Although this ritual is sacred, taking a bath is a personal choice. You can always visit the Ramanthaswamy Temple, and visit the House of Kalam, or visit Ramar Patham, the temple on the hill.