After refresh(click on F5 ) api is called without click on button

I created input and button next to it on click a post request is done with the input text in body as value.
The problem is if i click in F5 to refresh the page a call to api is done even though i didnt clicked on the button to create this post request.

What could be the reason?

Is your api call a DATA call or ACTION call?
DATA calls initiates itself on page load.