I'll try to explain this to you, but you should really look it up here: https://pubchem.ncbi.nlm.nih.gov/compound/beta-Levulose#section=3D-Conformer&fullscreen=true
This is the structure of beta-D-fructofuranose, as a 3D conformer. On paper, or as a 2D figure, we cannot visualize the -OH groups at positions 3 and 4.
They appear to be inside/outside the ring, but in reality, they're not really positioned that way. Both the -OH groups are oriented in an opposite manner, but in a plane perpendicular to that of the furan ring.
So when we flip it over to represent it in sucrose, the orientation of the -OH groups in the molecule flips too.
Think of it this way: if you have a piece of cardboard (representing the ring) with a pin pierced into it (representing the -OH), and you flip the board over, the pointy side of the pin will face down too.
Moreover, if we represent it this way, the absolute configuration of the side chains at each of the carbons of fructose remain the same.
You could check that using their RS configurations.
For more on RS configurations, check out : https://chem.libretexts.org/Bookshelves/Organic_Chemistry/Supplemental_Modules_(Organic_Chemistry)/Chirality/Absolute_Configuration%2C_R-S_Sequence_Rules