The text plays on the double meaning of 'swear at'. It can mean to curse in frustration, which is a common reaction to seeing one's weight on a bathroom scale, and also to take an oath, which is not the intended meaning here. The humor arises from the ambiguity of 'swear at' in the context of using a scale.
Bathroom scale : Something you stand on and swear at .