Rear windshield wiper rubber came off

Bought my first car last year with little knowledge about cars and how to upkeep them. Noticed that my rear windshield wiper was not ‘wiping’ properly and saw this rubber coming off. Is this something I can repair on my own or do I need to visit a garage? This question might win the silliest question award on this subreddit, please excuse my ignorance. It’s a BMW 1 series if that makes a difference. TIA.