Borrowed from English bond. The tramway sense is said to have originated from coupons sold as transport tickets which looked liked bonds issued at the time.
Practice speaking and memorizing "bonde" and many other words and sentences in Portuguese.