How come I could sell at a price that was only available two hours ago?

I placed a trade of EUR/USD this afternoon (Melbourne time) at 17:08. I did not pay attention to the bid price because I was focusing on the chart.

Once I pressed ‘Sell’ button (and the order was filled), I noticed that I was profiting $300+ instantly. I took a closer look, found that the bid price for which I placed the order was 1.17584, but it appears that this price could only be possible two hours ago. The highest price at the time (2hr time frame) was only 1.17337.

On my 2hr chart, I placed my order at the candlestick on the most right side (the red one), but the bid price I traded was only possible on that green bottom-hammer one stick bar (or two hours) before.

I’m a new user so I couldn’t put links or pics. Hopefully, I have made my point.