Sometimes you will have to (or you want to) execute some ruby statements but not for output purpose.
like the following:
<% if @user.nil? %>
Hi, welcome!
<% else %>
Hi, <%= @user.name %>!
<% end %>
Of course this is just one use case, but sometimes you do need <% %> :D