Thats an easy one. They were not trying to sink it.
So they were just trying to start a war or get the US to sink their boat?
Nothing makes any sense if Iran did this because they can only lose out and there's no possible gain for them.
Others can gain, the ones tossing accusations around.