It was to ensure that Willow's powers had no effect on others, a sort of defence spell. But like Willow said, the spell didn't stop her using magic on herself, so she made herself super strong. This way Buffy and Willow could fight each other hand to hand, otherwise Willow would have clearly kicked Buffy's ass with her magic. The episode shows it clearly 🙂