Hi Srinivas,
You're probably materializing the whole table when doing so and generating an intermediate result (variable out) with a copy of it to be kept as the resultset.
Depending on how wide the table is and presence of LOBs for instance can affect as well.
Share the executed planviz and the actual code for better understanding.
BRs,
Lucas de Oliveira