This quote means that learning to love is something difficult and expensive. It is similar to school in that it requires a lot of effort and energy from us, and that sometimes it can be very hard and unpleasant. However, the learning you get from love is worth the cost and effort.