This is because you're editing the post itself so it takes you to the post. While the part on your profile is more of just an embed. Suppose you could change it to go back one in history. Don't see much in this tbh
People actually like this behavior because they can also use this to get the link to their userpage. This has been around since I joined osu! I can't tell if this is intended or not for now.